Skip to content

Commit

Permalink
Updated boolForKey function
Browse files Browse the repository at this point in the history
  • Loading branch information
donato-fiore authored Aug 22, 2021
1 parent 413cc87 commit 24d0f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ BOOL boolForKey(NSString *key) {
if (prefs == nil) {
prefs = [[NSUserDefaults alloc] initWithSuiteName:PLIST_PATH];
}
NSNumber *value = [prefs objectForKey:key] ?: @YES;
NSNumber *value = [prefs objectForKey:key] ?: @NO;
return [value boolValue];
}

Expand Down Expand Up @@ -453,4 +453,4 @@ UIButton *huntButton;


%init;
}
}

0 comments on commit 24d0f77

Please sign in to comment.