diff --git a/syncthing/STApplication.m b/syncthing/STApplication.m index 5ee3475..0c3fb86 100644 --- a/syncthing/STApplication.m +++ b/syncthing/STApplication.m @@ -65,6 +65,11 @@ } else { [_syncthing setApiKey:cfgApiKey]; } + + NSString *cfgStartAtLogin = [defaults stringForKey:@"StartAtLogin"]; + if (!cfgStartAtLogin) { + [defaults setObject:@"false" forKey:@"StartAtLogin"]; + } } - (void) sendNotification:(NSString *)text {