mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 15:03:36 +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;
|
var result = results.SelectedItem?.RawResult;
|
||||||
if (result != null) // SelectedItem returns null if selection is empty.
|
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()
|
SpecialKeyState = GlobalHotkey.Instance.CheckModifiers()
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user