From b57de6bc1062b5e966d13539d53f9528c8db739d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 14 Mar 2011 04:45:29 -0700 Subject: Add a HUD around uicache. --- MobileCydia.mm | 13 ++++++++++--- 1 file 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); -- cgit v1.2.3