Always clear Hotkey 2 binding on removal

This commit is contained in:
Beingpax 2025-07-23 10:30:35 +05:45
parent f27de6ab3a
commit 5a3c6d7bfe

View File

@ -18,6 +18,9 @@ class HotkeyManager: ObservableObject {
}
@Published var selectedHotkey2: HotkeyOption {
didSet {
if selectedHotkey2 == .none {
KeyboardShortcuts.setShortcut(nil, for: .toggleMiniRecorder2)
}
UserDefaults.standard.set(selectedHotkey2.rawValue, forKey: "selectedHotkey2")
setupHotkeyMonitoring()
}