mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
fix null error when plugin doesn't set Action (#656)
This commit is contained in:
@@ -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()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user