summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-08 04:52:13 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 04:52:13 -0800
commitfca2f596a14fdca1a4c01e0220cee28303ba004a (patch)
tree84f1fda5c8e2b109490386af05e063288caea434 /MobileCydia.mm
parente09e15893a2bf1ec77500f10a2db32eb2e4d24c6 (diff)
Don't show finish button until it is usable.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm11
1 files changed, 7 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index f1a15ef..c304ce5 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8711,6 +8711,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (void) update_ {
[database_ update];
+ [self performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];
}
- (void) disemulate {
@@ -8790,8 +8791,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
fclose(file);
[self detachNewProgressSelector:@selector(update_) toTarget:self forController:nil title:@"UPDATING_SOURCES"];
-
- [self reloadData];
}
- (void) addTrivialSource:(NSString *)href {
@@ -8881,12 +8880,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
}
+- (void) perform_ {
+ [database_ perform];
+ [self performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];
+}
+
- (void) confirmWithNavigationController:(UINavigationController *)navigation {
Queuing_ = false;
++locked_;
- [self detachNewProgressSelector:@selector(perform) toTarget:database_ forController:navigation title:@"RUNNING"];
+ [self detachNewProgressSelector:@selector(perform_) toTarget:self forController:navigation title:@"RUNNING"];
--locked_;
- [self reloadData];
}
- (void) showSettings {