summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-17 17:02:59 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-17 17:04:25 -0800
commitd6c371f51efeaede0a3a0f83af43c68d8d50e111 (patch)
treeadd3a708a1fa3f34c7a6058f936a33fee55c9ec8 /MobileCydia.mm
parent50c1653e448725bde0680fe7cda0982d1f9e4029 (diff)
Cancel refresh during confirmation.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 77fffa8..f5a0eb2 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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;