Skip to content

Commit 4fd5039

Browse files
Fix item can't be unselected after editing shortcut
1 parent 9c369c4 commit 4fd5039

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,11 @@ public bool EditSelectedCustomShortcut()
775775
var shortcutSettingWindow = new CustomShortcutSetting(item.Key, item.Value, this);
776776
if (shortcutSettingWindow.ShowDialog() == true)
777777
{
778+
// https://stackoverflow.com/questions/16789360/wpf-listbox-items-with-changing-hashcode
779+
SelectedCustomShortcut = null;
778780
item.Key = shortcutSettingWindow.Key;
779781
item.Value = shortcutSettingWindow.Value;
782+
SelectedCustomShortcut = item;
780783
return true;
781784
}
782785
return false;

0 commit comments

Comments
 (0)