We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d1e305 + 044dc2c commit e28a69cCopy full SHA for e28a69c
Flow.Launcher/HotkeyControl.xaml.cs
@@ -214,13 +214,14 @@ public HotkeyControl()
214
215
HotkeyList.ItemsSource = KeysToDisplay;
216
217
- RefreshHotkeyInterface(Hotkey);
+ // We should not call RefreshHotkeyInterface here because DependencyProperty is not set yet
218
+ // And it will be called in OnHotkeyChanged event or Hotkey setter later
219
}
220
221
private void RefreshHotkeyInterface(string hotkey)
222
{
- SetKeysToDisplay(new HotkeyModel(Hotkey));
223
- CurrentHotkey = new HotkeyModel(Hotkey);
+ SetKeysToDisplay(new HotkeyModel(hotkey));
224
+ CurrentHotkey = new HotkeyModel(hotkey);
225
226
227
private static bool CheckHotkeyAvailability(HotkeyModel hotkey, bool validateKeyGesture) =>
0 commit comments