mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix null error when plugin doesn't set Action (#656)
This commit is contained in:
parent
452e8ed8c5
commit
635a8a24f2
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ namespace Wox.ViewModel
|
|||
var result = results.SelectedItem?.RawResult;
|
||||
if (result != null) // SelectedItem returns null if selection is empty.
|
||||
{
|
||||
bool hideWindow = result.Action(new ActionContext
|
||||
bool hideWindow = result.Action != null && result.Action(new ActionContext
|
||||
{
|
||||
SpecialKeyState = GlobalHotkey.Instance.CheckModifiers()
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue