diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 19:07:26 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 19:07:26 -0700 |
commit | a3755a1e7439eb7cff027ca187ef60ac250d1c95 (patch) | |
tree | 7988e1d162666ecfb90125bfedbf543b8ab2d5b9 /MobileCydia.mm | |
parent | 02f21c73082efec21b063d395196329f16f9ec73 (diff) |
Pop a HUD for sbreload.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index e2c4b25..0afba59 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(); |