No need to check hotkey command when removing

This commit is contained in:
Jack251970 2025-07-02 17:05:13 +08:00
parent 7d0cf1fb7a
commit 805b8efe04

View file

@ -374,8 +374,7 @@ internal static class HotKeyMapper
private static void RemoveHotkey(RegisteredHotkeyData hotkeyData)
{
if (hotkeyData is null || // Hotkey data is invalid
hotkeyData.Hotkey.IsEmpty || // Hotkey is none
hotkeyData.Command is null) // No need to set - it is a system command
hotkeyData.Hotkey.IsEmpty) // Hotkey is none
{
return;
}