From 2df9cb46223dd26e38cd037cb79e10412bd749a3 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia Date: Fri, 13 Jan 2017 15:25:39 -0500 Subject: [PATCH] Setting default options for font size and showing seconds --- Clocker/ApplicationDelegate.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Clocker/ApplicationDelegate.m b/Clocker/ApplicationDelegate.m index 4a30e15..c84ea63 100755 --- a/Clocker/ApplicationDelegate.m +++ b/Clocker/ApplicationDelegate.m @@ -103,8 +103,8 @@ void *kContextActivePanel = &kContextActivePanel; [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @YES }]; - [[Crashlytics sharedInstance] setDebugMode:NO]; - [Fabric with:@[[Crashlytics class]]]; +// [[Crashlytics sharedInstance] setDebugMode:NO]; +// [Fabric with:@[[Crashlytics class]]]; } @@ -168,6 +168,16 @@ void *kContextActivePanel = &kContextActivePanel; [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 (displayMode.integerValue == 1) {