diff --git a/pEpNotifications/pEpNotifications/AppDelegate.swift b/pEpNotifications/pEpNotifications/AppDelegate.swift index 3e46bea..e69a783 100644 --- a/pEpNotifications/pEpNotifications/AppDelegate.swift +++ b/pEpNotifications/pEpNotifications/AppDelegate.swift @@ -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