Skip to content

Commit

Permalink
Show correct logging mode in prefpane
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkollasch committed May 17, 2022
1 parent 09b8f8f commit 2c93e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prefpane/JitouchPref.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (IBAction)change:(id)sender {
stvt = [sender floatValue];
[Settings setKey:@"Sensitivity" withFloat:[sender floatValue]];
} else if (sender == loggingMode) {
logLevel = (int)[[sender selectedItem] tag];
logLevel = (int)[sender selectedTag];
[Settings setKey:@"LogLevel" withInt:(int)[[sender selectedItem] tag]];
}
[Settings noteSettingsUpdated];
Expand Down Expand Up @@ -247,6 +247,7 @@ - (void)mainViewDidLoad {
[cbShowIcon setState:[[settings objectForKey:@"ShowIcon"] intValue]];
[sdClickSpeed setFloatValue:0.5-clickSpeed];
[sdSensitivity setFloatValue:stvt];
[loggingMode selectItemWithTag:logLevel];

[self enUpdated];

Expand Down

0 comments on commit 2c93e02

Please sign in to comment.