|
|
@ -103,8 +103,8 @@ void *kContextActivePanel = &kContextActivePanel; |
|
|
|
|
|
|
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @YES }]; |
|
|
|
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @YES }]; |
|
|
|
|
|
|
|
|
|
|
|
[[Crashlytics sharedInstance] setDebugMode:NO]; |
|
|
|
// [[Crashlytics sharedInstance] setDebugMode:NO]; |
|
|
|
[Fabric with:@[[Crashlytics class]]]; |
|
|
|
// [Fabric with:@[[Crashlytics class]]]; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -168,6 +168,16 @@ void *kContextActivePanel = &kContextActivePanel; |
|
|
|
[userDefaults setObject:@1 forKey:CLSunriseSunsetTime]; |
|
|
|
[userDefaults setObject:@1 forKey:CLSunriseSunsetTime]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSNumber *showSeconds = [userDefaults objectForKey:CLShowSecondsInMenubar]; |
|
|
|
|
|
|
|
if (showSeconds == nil) { |
|
|
|
|
|
|
|
[userDefaults setObject:@1 forKey:CLShowSecondsInMenubar]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSNumber *userFontSize = [userDefaults objectForKey:CLUserFontSizePreference]; |
|
|
|
|
|
|
|
if (userFontSize == nil) { |
|
|
|
|
|
|
|
[userDefaults setObject:@4 forKey:CLUserFontSizePreference]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//If mode selected is 1, then show the window when the app starts |
|
|
|
//If mode selected is 1, then show the window when the app starts |
|
|
|
if (displayMode.integerValue == 1) |
|
|
|
if (displayMode.integerValue == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|