Always clear Hotkey 2 binding on removal
This commit is contained in:
parent
f27de6ab3a
commit
5a3c6d7bfe
@ -18,6 +18,9 @@ class HotkeyManager: ObservableObject {
|
|||||||
}
|
}
|
||||||
@Published var selectedHotkey2: HotkeyOption {
|
@Published var selectedHotkey2: HotkeyOption {
|
||||||
didSet {
|
didSet {
|
||||||
|
if selectedHotkey2 == .none {
|
||||||
|
KeyboardShortcuts.setShortcut(nil, for: .toggleMiniRecorder2)
|
||||||
|
}
|
||||||
UserDefaults.standard.set(selectedHotkey2.rawValue, forKey: "selectedHotkey2")
|
UserDefaults.standard.set(selectedHotkey2.rawValue, forKey: "selectedHotkey2")
|
||||||
setupHotkeyMonitoring()
|
setupHotkeyMonitoring()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user