mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix hotkey initialization issue
This commit is contained in:
parent
9d1e305ed8
commit
044dc2c5ea
1 changed files with 4 additions and 3 deletions
|
|
@ -214,13 +214,14 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
HotkeyList.ItemsSource = KeysToDisplay;
|
HotkeyList.ItemsSource = KeysToDisplay;
|
||||||
|
|
||||||
RefreshHotkeyInterface(Hotkey);
|
// We should not call RefreshHotkeyInterface here because DependencyProperty is not set yet
|
||||||
|
// And it will be called in OnHotkeyChanged event or Hotkey setter later
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RefreshHotkeyInterface(string hotkey)
|
private void RefreshHotkeyInterface(string hotkey)
|
||||||
{
|
{
|
||||||
SetKeysToDisplay(new HotkeyModel(Hotkey));
|
SetKeysToDisplay(new HotkeyModel(hotkey));
|
||||||
CurrentHotkey = new HotkeyModel(Hotkey);
|
CurrentHotkey = new HotkeyModel(hotkey);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool CheckHotkeyAvailability(HotkeyModel hotkey, bool validateKeyGesture) =>
|
private static bool CheckHotkeyAvailability(HotkeyModel hotkey, bool validateKeyGesture) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue