diff --git a/xDebug Toggler/ViewController.swift b/xDebug Toggler/ViewController.swift index 6ffdf2c..b56f348 100644 --- a/xDebug Toggler/ViewController.swift +++ b/xDebug Toggler/ViewController.swift @@ -95,6 +95,7 @@ class ViewController: NSViewController { MASShortcutMonitor.shared().register(self.shortcutView.shortcutValue, withAction: appDelegate?.toggleXDebug) } else { MASShortcutMonitor.shared()?.unregisterAllShortcuts() + XDebugManager.removeShortcut() } } } diff --git a/xDebug Toggler/XDebugManager.swift b/xDebug Toggler/XDebugManager.swift index cadae98..ba3dde3 100644 --- a/xDebug Toggler/XDebugManager.swift +++ b/xDebug Toggler/XDebugManager.swift @@ -141,4 +141,8 @@ class XDebugManager: NSObject { return nil } + + class func removeShortcut() { + UserDefaults.standard.removeObject(forKey: "shortcut") + } }