mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fix crash on null Action binded to Result
This commit is contained in:
@@ -83,7 +83,9 @@ namespace Wox
|
|||||||
|
|
||||||
AddHandler(MouseLeftButtonUpEvent, new RoutedEventHandler((o, e) =>
|
AddHandler(MouseLeftButtonUpEvent, new RoutedEventHandler((o, e) =>
|
||||||
{
|
{
|
||||||
Result.Action();
|
if (Result.Action != null)
|
||||||
|
Result.Action();
|
||||||
|
|
||||||
CommonStorage.Instance.UserSelectedRecords.Add(result);
|
CommonStorage.Instance.UserSelectedRecords.Add(result);
|
||||||
if (!result.DontHideWoxAfterSelect)
|
if (!result.DontHideWoxAfterSelect)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user