Browse Source

remove menu extra on demand

works_for_me
Volker Birk 2 years ago
parent
commit
3eb0fdd9ec
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pEpNotifications/pEpNotifications/AppDelegate.swift

+ 3
- 0
pEpNotifications/pEpNotifications/AppDelegate.swift View File

@ -94,6 +94,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
if sender.state == NSControl.StateValue.on {
sender.state = NSControl.StateValue.off
UserDefaults.standard.set(false, forKey: "AlwaysShowThisMenu")
if statusText.representedObject == nil {
uninstallMenuExtra()
}
}
else {
sender.state = NSControl.StateValue.on


Loading…
Cancel
Save