Browse Source

Enable Dock Mode in Debug!

pull/92/head
Abhishek 5 years ago
parent
commit
10b4089b96
  1. 6
      Clocker/AppDelegate.swift

6
Clocker/AppDelegate.swift

@ -161,7 +161,11 @@ open class AppDelegate: NSObject, NSApplicationDelegate {
let defaults = UserDefaults.standard
let currentActivationPolicy = NSRunningApplication.current.activationPolicy
let activationPolicy: NSApplication.ActivationPolicy = defaults.integer(forKey: CLAppDislayOptions) == 0 ? .accessory : .regular
var activationPolicy: NSApplication.ActivationPolicy = defaults.integer(forKey: CLAppDislayOptions) == 0 ? .accessory : .regular
#if DEBUG
activationPolicy = .regular
#endif
if currentActivationPolicy != activationPolicy {
NSApp.setActivationPolicy(activationPolicy)

Loading…
Cancel
Save