summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-14 04:45:29 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:12 -0700
commitb57de6bc1062b5e966d13539d53f9528c8db739d (patch)
tree05b318d77f66085376d29cabe5af5650f0a16523 /MobileCydia.mm
parentc33064f11c970d957b1d1f9afb00f91cda5dcacc (diff)
Add a HUD around uicache.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm13
1 files changed, 10 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 42053dd..ab8dab3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5204,6 +5204,12 @@ 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);
@@ -5281,9 +5287,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
case 4: [progress_ setFinish:UCLocalize("REBOOT_DEVICE")]; break;
}
- _trace();
- system("su -c /usr/bin/uicache mobile");
- _trace();
+ UIProgressHUD *hud([delegate_ addProgressHUD]);
+ [hud setText:UCLocalize("LOADING")];
+ [self yieldToSelector:@selector(uicache)];
+ [delegate_ removeProgressHUD:hud];
UpdateExternalStatus(Finish_ == 0 ? 0 : 2);