]> git.saurik.com Git - cydia.git/commitdiff
Normalized Changed_ = true; placement.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Dec 2010 01:19:20 +0000 (17:19 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Dec 2010 09:46:27 +0000 (01:46 -0800)
MobileCydia.mm

index 34781f6619781f0a352f882917d3f2aea230d123..069a04a89d1f59bf6cf0481b0af39dc4a3de32b0 100644 (file)
@@ -5001,14 +5001,14 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (void) onSwitch:(id)sender {
-    NSMutableDictionary *metadata = [Sections_ objectForKey:basic_];
+    NSMutableDictionary *metadata([Sections_ objectForKey:basic_]);
     if (metadata == nil) {
         metadata = [NSMutableDictionary dictionaryWithCapacity:2];
         [Sections_ setObject:metadata forKey:basic_];
     }
 
-    Changed_ = true;
     [metadata setObject:[NSNumber numberWithBool:([switch_ isOn] == NO)] forKey:@"Hidden"];
+    Changed_ = true;
 }
 
 - (void) setSection:(Section *)section editing:(BOOL)editing {
@@ -7560,7 +7560,6 @@ freeing the view controllers on tab change */
         nil];
 
         [Metadata_ setObject:Settings_ forKey:@"Settings"];
-
         Changed_ = true;
 
         if (rolling)