Merge branch 'dev' into 250223FluentTest2

This commit is contained in:
Jack Ye 2025-03-18 19:53:56 +08:00 committed by GitHub
commit 8493fa559b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,13 +214,14 @@ namespace Flow.Launcher
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)
{
SetKeysToDisplay(new HotkeyModel(Hotkey));
CurrentHotkey = new HotkeyModel(Hotkey);
SetKeysToDisplay(new HotkeyModel(hotkey));
CurrentHotkey = new HotkeyModel(hotkey);
}
private static bool CheckHotkeyAvailability(HotkeyModel hotkey, bool validateKeyGesture) =>