static const NSString *UI_;
static int Finish_;
+static bool RestartSubstrate_;
static NSArray *Finishes_;
#define SpringBoard_ "/System/Library/LaunchDaemons/com.apple.SpringBoard.plist"
}
- (void) perform {
+ bool substrate(RestartSubstrate_);
+ RestartSubstrate_ = false;
+
NSString *title(UCLocalize("PERFORM_SELECTIONS"));
NSMutableArray *before = [NSMutableArray arrayWithCapacity:16]; {
return;
}
+ if (substrate)
+ RestartSubstrate_ = true;
+
_system->UnLock();
pkgPackageManager::OrderResult result = manager_->DoInstall(statusfd_);
- (void) complete {
if (substrate_)
- Finish_ = 2;
+ RestartSubstrate_ = true;
[delegate_ confirmWithNavigationController:[self navigationController]];
}
}
}
+ if (Finish_ < 2) {
+ if (RestartSubstrate_)
+ Finish_ = 2;
+ }
+
+ RestartSubstrate_ = false;
+
switch (Finish_) {
case 0: [close_ setTitle:UCLocalize("RETURN_TO_CYDIA")]; break; /* XXX: Maybe UCLocalize("DONE")? */
case 1: [close_ setTitle:UCLocalize("CLOSE_CYDIA")]; break;