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