Skip to content

Commit a0b29ed

Browse files
Updated limited log flag to show correct state
1 parent 548fb95 commit a0b29ed

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

AppBox/Common/LogManager/ABLog.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@implementation ABLog
1212

1313
+(void)log:(NSString *)format, ...{
14-
if (![UserData debugLog]) {
14+
if ([UserData debugLog]) {
1515
va_list args;
1616
va_start(args, format);
1717
NSLogv(format, args);

AppBox/ViewController/PreferencesViewController/GeneralPreferencesViewController/PreferencesViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ - (void)viewDidLoad {
3030
[chunkSizeComboBox selectItemAtIndex:[chunkSizes indexOfObject:chunkSize]];
3131

3232
//set general settings
33-
[limitedLogCheckBox setState: [UserData debugLog] ? NSOnState : NSOffState];
33+
[limitedLogCheckBox setState: [UserData debugLog] ? NSOffState : NSOnState];
3434
[updateAlertCheckBox setState: [UserData updateAlertEnable] ? NSOnState : NSOffState];
3535
}
3636

@@ -71,7 +71,7 @@ - (IBAction)updateAlertCheckBoxChanged:(NSButton *)sender {
7171
}
7272

7373
- (IBAction)limitedLogCheckBoxChanged:(NSButton *)sender {
74-
[UserData setEnableDebugLog:(sender.state == NSOnState)];
74+
[UserData setEnableDebugLog:(sender.state != NSOnState)];
7575
}
7676

7777
@end

0 commit comments

Comments
 (0)