]> git.saurik.com Git - cydia.git/commitdiff
Cancel refresh during confirmation.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 01:02:59 +0000 (17:02 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Feb 2011 01:04:25 +0000 (17:04 -0800)
MobileCydia.mm

index 77fffa87aaefe5bbb5322402d6b166fd4233b62e..f5a0eb2d0e5919c31de7604b847f03c29c164d4e 100644 (file)
@@ -8675,6 +8675,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (bool) perform {
+    // XXX: this is a really crappy way of doing this.
+    // like, seriously: this state machine is still broken, and cancelling this here doesn't really /fix/ that.
+    // for one, the user can still /start/ a reloading data event while they have a queue, which is stupid
+    // for two, this just means there is a race condition between the refresh completing and the confirmation controller appearing.
+    if ([tabbar_ updating])
+        [tabbar_ cancelUpdate];
+
     if (![database_ prepare])
         return false;