Skip to content

Commit

Permalink
At application start make sure StartAtLogin default configuration exi…
Browse files Browse the repository at this point in the history
…sts, else the Preferences window will assert because of Nil value on setStringValue
  • Loading branch information
xor-gate committed Oct 16, 2016
1 parent e3a7c04 commit afff54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions syncthing/STApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ - (void)applicationLoadConfiguration {
} else {
[_syncthing setApiKey:cfgApiKey];
}

NSString *cfgStartAtLogin = [defaults stringForKey:@"StartAtLogin"];
if (!cfgStartAtLogin) {
[defaults setObject:@"false" forKey:@"StartAtLogin"];
}
}

- (void) sendNotification:(NSString *)text {
Expand Down

0 comments on commit afff54d

Please sign in to comment.