Code quality

This commit is contained in:
Jack251970 2025-07-02 13:09:13 +08:00
parent 39fa79b49d
commit 6e94d1668b

View file

@ -37,11 +37,6 @@ internal static class HotKeyMapper
_settings = Ioc.Default.GetService<Settings>();
InitializeRegisteredHotkeys();
foreach (var hotkey in _settings.RegisteredHotkeys)
{
SetHotkey(hotkey);
}
}
private static void InitializeRegisteredHotkeys()
@ -154,10 +149,11 @@ internal static class HotKeyMapper
list.Add(new(RegisteredHotkeyType.PluginWindowHotkey, HotkeyType.SearchWindow, hotkeyModel, "pluginWindowHotkey", WindowPluginHotkeyCommand, new WindowPluginHotkeyPair(windowHotkeys)));
}
// Add registered hotkeys
// Add registered hotkeys & Set them
foreach (var hotkey in list)
{
_settings.RegisteredHotkeys.Add(hotkey);
SetHotkey(hotkey);
}
}