From: Jay Freeman (saurik) Date: Mon, 14 Mar 2011 11:45:29 +0000 (-0700) Subject: Add a HUD around uicache. X-Git-Tag: v1.1.0%b7~6 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/b57de6bc1062b5e966d13539d53f9528c8db739d?ds=sidebyside Add a HUD around uicache. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 42053dde..ab8dab35 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);