mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
fix null error when plugin doesn't set Action (#656)
This commit is contained in:
parent
452e8ed8c5
commit
635a8a24f2
@ -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 New Issue
Block a user