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:
Jerry Jacobs
2016-10-16 17:01:58 +02:00
parent e3a7c04dd6
commit afff54d647
+5
View File
@@ -65,6 +65,11 @@
} else {
[_syncthing setApiKey:cfgApiKey];
}
NSString *cfgStartAtLogin = [defaults stringForKey:@"StartAtLogin"];
if (!cfgStartAtLogin) {
[defaults setObject:@"false" forKey:@"StartAtLogin"];
}
}
- (void) sendNotification:(NSString *)text {