]> git.saurik.com Git - cydia.git/commitdiff
Do not refresh after deleting a source.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 08:55:03 +0000 (01:55 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 08:55:06 +0000 (01:55 -0700)
MobileCydia.mm

index e879c9be066c6b59624c7a9e32bdfc86fa26d9c6..370fd17334fe33cf08998865e4737bd865eaf1f9 100644 (file)
@@ -879,6 +879,7 @@ static NSString *CYHex(NSData *data, bool reverse = false) {
 - (void) distUpgrade;
 - (void) loadData;
 - (void) updateData;
+- (void) _saveConfig;
 - (void) syncData;
 - (void) addSource:(NSDictionary *)source;
 - (void) addTrivialSource:(NSString *)href;
@@ -8636,7 +8637,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     if (editingStyle ==  UITableViewCellEditingStyleDelete) {
         Source *source = [self sourceAtIndexPath:indexPath];
         [Sources_ removeObjectForKey:[source key]];
-        [delegate_ syncData];
+        [delegate_ reloadDataWithInvocation:nil];
+        [delegate_ _saveConfig];
     }
 }