Skip to content

Commit

Permalink
Add remove shortcut feature
Browse files Browse the repository at this point in the history
  • Loading branch information
deligoez committed Jun 18, 2020
1 parent cb0af23 commit f986893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions xDebug Toggler/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class ViewController: NSViewController {
MASShortcutMonitor.shared().register(self.shortcutView.shortcutValue, withAction: appDelegate?.toggleXDebug)
} else {
MASShortcutMonitor.shared()?.unregisterAllShortcuts()
XDebugManager.removeShortcut()
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions xDebug Toggler/XDebugManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,8 @@ class XDebugManager: NSObject {

return nil
}

class func removeShortcut() {
UserDefaults.standard.removeObject(forKey: "shortcut")
}
}

0 comments on commit f986893

Please sign in to comment.