diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index a7db713..05b24f4 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -104,7 +104,7 @@ open class AppDelegate: NSObject, NSApplicationDelegate { } @objc func hideFromDock() { - UserDefaults.standard.set(0, forKey: CLAppDislayOptions) + UserDefaults.standard.set(0, forKey: CLAppDisplayOptions) NSApp.setActivationPolicy(.accessory) } @@ -164,10 +164,10 @@ open class AppDelegate: NSObject, NSApplicationDelegate { let defaults = UserDefaults.standard let currentActivationPolicy = NSRunningApplication.current.activationPolicy - var activationPolicy: NSApplication.ActivationPolicy = defaults.integer(forKey: CLAppDislayOptions) == 0 ? .accessory : .regular + var activationPolicy: NSApplication.ActivationPolicy = defaults.integer(forKey: CLAppDisplayOptions) == 0 ? .accessory : .regular #if DEBUG - UserDefaults.standard.set(1, forKey: CLAppDislayOptions) + UserDefaults.standard.set(1, forKey: CLAppDisplayOptions) activationPolicy = .regular #endif diff --git a/Clocker/Overall App/AppDefaults.swift b/Clocker/Overall App/AppDefaults.swift index 6e5af28..86b52cb 100644 --- a/Clocker/Overall App/AppDefaults.swift +++ b/Clocker/Overall App/AppDefaults.swift @@ -126,7 +126,7 @@ class AppDefaults { CLShowMeetingInMenubar: 1, CLTruncateTextLength: 30, CLSelectedCalendars: [], - CLAppDislayOptions: 0, + CLAppDisplayOptions: 1, CLMenubarCompactMode: 1] } }