Fix ContextMenu bug

Should not switch to ContextMenu if SelectedItem == null
This commit is contained in:
pc223 2021-06-26 15:42:55 +07:00
parent 2e412a0023
commit 64cc4a9a6b

View file

@ -211,7 +211,10 @@ namespace Flow.Launcher.ViewModel
{
if (SelectedIsFromQueryResults())
{
SelectedResults = ContextMenu;
// When switch to ContextMenu from QueryResults, but no item being chosen, should do nothing
// i.e. Shift+Enter/Ctrl+O right after Alt + Space should do nothing
if (SelectedResults.SelectedItem != null)
SelectedResults = ContextMenu;
}
else
{