summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-14 08:04:25 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 08:04:25 -0700
commitda3ec19ce7f0dd6d55869172e73b4bedc40b7fd9 (patch)
tree25d41c119ece85049f1b0955c0443bdd19333a86 /MobileCydia.mm
parent5a9a907d6942ea9ccc54edf193511256caa513cf (diff)
Use verifying HUD for repotag and don't overlay dialog.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm15
1 files changed, 10 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 84029d5..d322325 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8255,6 +8255,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (void) complete {
[delegate_ addTrivialSource:href_];
+ href_ = nil;
+
[delegate_ syncData];
}
@@ -8295,13 +8297,15 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
trivial_bz2_ == nil &&
trivial_gz_ == nil
) {
+ NSString *warning(cydia_ ? [self yieldToSelector:@selector(getWarning)] : nil);
+
[delegate_ releaseNetworkActivityIndicator];
[delegate_ removeProgressHUD:hud_];
hud_ = nil;
if (cydia_) {
- if (NSString *warning = [self yieldToSelector:@selector(getWarning)]) {
+ if (warning != nil) {
UIAlertView *alert = [[[UIAlertView alloc]
initWithTitle:UCLocalize("SOURCE_WARNING")
message:warning
@@ -8333,6 +8337,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[alert setContext:@"urlerror"];
[alert show];
+
+ href_ = nil;
} else {
UIAlertView *alert = [[[UIAlertView alloc]
initWithTitle:UCLocalize("NOT_REPOSITORY")
@@ -8344,9 +8350,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[alert setContext:@"trivial"];
[alert show];
+
+ href_ = nil;
}
- href_ = nil;
error_ = nil;
}
}
@@ -8434,7 +8441,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
else if ([context isEqualToString:@"warning"]) {
switch (button) {
case 1:
- [self complete];
+ [self performSelector:@selector(complete) withObject:nil afterDelay:0];
break;
case 0:
@@ -8443,8 +8450,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
_nodefault
}
- href_ = nil;
-
[alert dismissWithClickedButtonIndex:-1 animated:YES];
}
}