From: Jay Freeman (saurik) Date: Fri, 18 Feb 2011 01:02:59 +0000 (-0800) Subject: Cancel refresh during confirmation. X-Git-Tag: v1.1.0%b1~328 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/d6c371f51efeaede0a3a0f83af43c68d8d50e111 Cancel refresh during confirmation. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 77fffa87..f5a0eb2d 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;