Remove redundant KeyboardShortcuts.disable() call
This commit is contained in:
parent
f0df362fac
commit
ce6607a8c7
@ -426,4 +426,4 @@ class HotkeyManager: ObservableObject {
|
||||
removeAllMonitoring()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,6 @@ class PowerModeShortcutManager {
|
||||
let idsToRemove = registeredPowerModeIds.subtracting(powerModesWithShortcuts)
|
||||
idsToRemove.forEach { id in
|
||||
KeyboardShortcuts.setShortcut(nil, for: .powerMode(id: id))
|
||||
KeyboardShortcuts.disable(.powerMode(id: id))
|
||||
registeredPowerModeIds.remove(id)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user