Browse Source

Setting default options for font size and showing seconds

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
2df9cb4622
  1. 14
      Clocker/ApplicationDelegate.m

14
Clocker/ApplicationDelegate.m

@ -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)
{ {

Loading…
Cancel
Save