diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs index 864ed964d..b6ff01ad9 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs @@ -115,7 +115,7 @@ namespace Flow.Launcher.Core.Plugin foreach (var result in queryResponseModel.Result) { - result.ActionAsync = async c => + result.AsyncAction = async c => { UpdateSettings(result.SettingsChange); diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 58c0188bb..f80b6c028 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -92,7 +92,7 @@ namespace Flow.Launcher.Plugin /// true to hide flowlauncher after select result /// /// - public Func> ActionAsync { get; set; } + public Func> AsyncAction { get; set; } /// /// Priority of the current result @@ -181,7 +181,7 @@ namespace Flow.Launcher.Plugin public ValueTask ExecuteAsync(ActionContext context) { - return ActionAsync?.Invoke(context) ?? ValueTask.FromResult(Action?.Invoke(context) ?? false); + return AsyncAction?.Invoke(context) ?? ValueTask.FromResult(Action?.Invoke(context) ?? false); } } } \ No newline at end of file diff --git a/Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs b/Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs index fc94e9b75..5ca97d93a 100644 --- a/Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs +++ b/Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs @@ -48,7 +48,7 @@ namespace Flow.Launcher.Test.Plugins foreach (var result in results) { Assert.IsNotNull(result); - Assert.IsNotNull(result.ActionAsync); + Assert.IsNotNull(result.AsyncAction); Assert.IsNotNull(result.Title); } @@ -92,7 +92,7 @@ namespace Flow.Launcher.Test.Plugins Assert.AreEqual(result1, referenceResult); Assert.IsNotNull(result1); - Assert.IsNotNull(result1.ActionAsync); + Assert.IsNotNull(result1.AsyncAction); } } diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index b96abca95..2a7f9c494 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -86,7 +86,7 @@ Height="32" Margin="0,0,0,0" HorizontalAlignment="Center" - Source="{Binding Image}" + Source="{Binding Image, TargetNullValue={x:Null}}" Stretch="Uniform" Visibility="{Binding ShowIcon}" />