From: Jay Freeman (saurik) Date: Wed, 23 Mar 2011 02:07:26 +0000 (-0700) Subject: Pop a HUD for sbreload. X-Git-Tag: v1.1.0%rc1~23 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a3755a1e7439eb7cff027ca187ef60ac250d1c95?ds=inline Pop a HUD for sbreload. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index e2c4b255..0afba59a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5225,6 +5225,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [super viewWillAppear:animated]; } +- (void) reloadSpringBoard { + system("/usr/bin/sbreload"); +} + - (void) close { UpdateExternalStatus(0); @@ -5252,10 +5256,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { _trace(); goto reload; - reload: - system("/usr/bin/sbreload"); + reload: { + UIProgressHUD *hud([delegate_ addProgressHUD]); + [hud setText:UCLocalize("LOADING")]; + [self yieldToSelector:@selector(reloadSpringBoard)]; + [delegate_ removeProgressHUD:hud]; _trace(); - break; + } break; case 4: _trace();