Skip to content

Commit f941655

Browse files
Fix null reference when hotkey is invalid
1 parent fbd12eb commit f941655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Task SetHotkeyAsync(string keyStr, bool triggerValidate = true)
103103

104104
private void tbHotkey_LostFocus(object sender, RoutedEventArgs e)
105105
{
106-
tbHotkey.Text = CurrentHotkey.ToString();
106+
tbHotkey.Text = CurrentHotkey?.ToString() ?? "";
107107
tbHotkey.Select(tbHotkey.Text.Length, 0);
108108
}
109109

0 commit comments

Comments
 (0)