File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Flow.Launcher.Core/Plugin
Flow.Launcher.Test/Plugins Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ private List<Result> ParseResults(JsonRPCQueryResponseModel queryResponseModel)
115115
116116 foreach ( var result in queryResponseModel . Result )
117117 {
118- result . ActionAsync = async c =>
118+ result . AsyncAction = async c =>
119119 {
120120 UpdateSettings ( result . SettingsChange ) ;
121121
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public string IcoPath
9292 /// true to hide flowlauncher after select result
9393 /// </returns>
9494 /// </summary>
95- public Func < ActionContext , ValueTask < bool > > ActionAsync { get ; set ; }
95+ public Func < ActionContext , ValueTask < bool > > AsyncAction { get ; set ; }
9696
9797 /// <summary>
9898 /// Priority of the current result
@@ -181,7 +181,7 @@ public override string ToString()
181181
182182 public ValueTask < bool > ExecuteAsync ( ActionContext context )
183183 {
184- return ActionAsync ? . Invoke ( context ) ?? ValueTask . FromResult ( Action ? . Invoke ( context ) ?? false ) ;
184+ return AsyncAction ? . Invoke ( context ) ?? ValueTask . FromResult ( Action ? . Invoke ( context ) ?? false ) ;
185185 }
186186 }
187187}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public async Task GivenVariousJsonText_WhenVariousNamingCase_ThenExpectNotNullRe
4848 foreach ( var result in results )
4949 {
5050 Assert . IsNotNull ( result ) ;
51- Assert . IsNotNull ( result . ActionAsync ) ;
51+ Assert . IsNotNull ( result . AsyncAction ) ;
5252 Assert . IsNotNull ( result . Title ) ;
5353 }
5454
@@ -92,7 +92,7 @@ public async Task GivenModel_WhenSerializeWithDifferentNamingPolicy_ThenExpectSa
9292 Assert . AreEqual ( result1 , referenceResult ) ;
9393
9494 Assert . IsNotNull ( result1 ) ;
95- Assert . IsNotNull ( result1 . ActionAsync ) ;
95+ Assert . IsNotNull ( result1 . AsyncAction ) ;
9696 }
9797 }
9898
Original file line number Diff line number Diff line change 8686 Height =" 32"
8787 Margin =" 0,0,0,0"
8888 HorizontalAlignment =" Center"
89- Source =" {Binding Image}"
89+ Source =" {Binding Image, TargetNullValue={x:Null} }"
9090 Stretch =" Uniform"
9191 Visibility =" {Binding ShowIcon}" />
9292 </Border >
You can’t perform that action at this time.
0 commit comments