Remove redundant KeyboardShortcuts.disable() call

This commit is contained in:
Beingpax 2026-01-03 11:02:43 +05:45
parent f0df362fac
commit ce6607a8c7
2 changed files with 1 additions and 2 deletions

View File

@ -426,4 +426,4 @@ class HotkeyManager: ObservableObject {
removeAllMonitoring()
}
}
}
}

View File

@ -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)
}