mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Code quality
This commit is contained in:
parent
39fa79b49d
commit
6e94d1668b
1 changed files with 2 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue