mirror of
https://github.com/syncthing/syncthing-macos.git
synced 2026-06-16 12:04:33 +00:00
At application start make sure StartAtLogin default configuration exists, else the Preferences window will assert because of Nil value on setStringValue
This commit is contained in:
@@ -65,6 +65,11 @@
|
||||
} else {
|
||||
[_syncthing setApiKey:cfgApiKey];
|
||||
}
|
||||
|
||||
NSString *cfgStartAtLogin = [defaults stringForKey:@"StartAtLogin"];
|
||||
if (!cfgStartAtLogin) {
|
||||
[defaults setObject:@"false" forKey:@"StartAtLogin"];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) sendNotification:(NSString *)text {
|
||||
|
||||
Reference in New Issue
Block a user