summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-04-02 00:41:09 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-04-02 00:41:09 -0700
commit780cdb3b979c2fac81795d5eba4b3c4cd26c77eb (patch)
tree65ca02e1a54cbf9dd9b5821264dd99fc45ebc2df /MobileCydia.mm
parent3df46e741e620f87bf965cbef15b422189783f24 (diff)
Only do uicache during installation.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm25
1 files changed, 14 insertions, 11 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1f2fcdd..01b8c3d 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5332,12 +5332,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
] autorelease];
}
-- (void) uicache {
- _trace();
- system("su -c /usr/bin/uicache mobile");
- _trace();
-}
-
- (void) invoke:(NSInvocation *)invocation withTitle:(NSString *)title {
UpdateExternalStatus(1);
@@ -5415,11 +5409,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
case 4: [progress_ setFinish:UCLocalize("REBOOT_DEVICE")]; break;
}
- UIProgressHUD *hud([delegate_ addProgressHUD]);
- [hud setText:UCLocalize("LOADING")];
- [self yieldToSelector:@selector(uicache)];
- [delegate_ removeProgressHUD:hud];
-
UpdateExternalStatus(Finish_ == 0 ? 0 : 2);
[progress_ setRunning:false];
@@ -9690,9 +9679,23 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
}
}
+- (void) _uicache {
+ _trace();
+ system("su -c /usr/bin/uicache mobile");
+ _trace();
+}
+
+- (void) uicache {
+ UIProgressHUD *hud([self addProgressHUD]);
+ [hud setText:UCLocalize("LOADING")];
+ [self yieldToSelector:@selector(_uicache)];
+ [self removeProgressHUD:hud];
+}
+
- (void) perform_ {
[database_ perform];
[self performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];
+ [self performSelectorOnMainThread:@selector(uicache) withObject:nil waitUntilDone:YES];
}
- (void) confirmWithNavigationController:(UINavigationController *)navigation {