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)
115
115
116
116
foreach ( var result in queryResponseModel . Result )
117
117
{
118
- result . ActionAsync = async c =>
118
+ result . AsyncAction = async c =>
119
119
{
120
120
UpdateSettings ( result . SettingsChange ) ;
121
121
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public string IcoPath
92
92
/// true to hide flowlauncher after select result
93
93
/// </returns>
94
94
/// </summary>
95
- public Func < ActionContext , ValueTask < bool > > ActionAsync { get ; set ; }
95
+ public Func < ActionContext , ValueTask < bool > > AsyncAction { get ; set ; }
96
96
97
97
/// <summary>
98
98
/// Priority of the current result
@@ -181,7 +181,7 @@ public override string ToString()
181
181
182
182
public ValueTask < bool > ExecuteAsync ( ActionContext context )
183
183
{
184
- return ActionAsync ? . Invoke ( context ) ?? ValueTask . FromResult ( Action ? . Invoke ( context ) ?? false ) ;
184
+ return AsyncAction ? . Invoke ( context ) ?? ValueTask . FromResult ( Action ? . Invoke ( context ) ?? false ) ;
185
185
}
186
186
}
187
187
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public async Task GivenVariousJsonText_WhenVariousNamingCase_ThenExpectNotNullRe
48
48
foreach ( var result in results )
49
49
{
50
50
Assert . IsNotNull ( result ) ;
51
- Assert . IsNotNull ( result . ActionAsync ) ;
51
+ Assert . IsNotNull ( result . AsyncAction ) ;
52
52
Assert . IsNotNull ( result . Title ) ;
53
53
}
54
54
@@ -92,7 +92,7 @@ public async Task GivenModel_WhenSerializeWithDifferentNamingPolicy_ThenExpectSa
92
92
Assert . AreEqual ( result1 , referenceResult ) ;
93
93
94
94
Assert . IsNotNull ( result1 ) ;
95
- Assert . IsNotNull ( result1 . ActionAsync ) ;
95
+ Assert . IsNotNull ( result1 . AsyncAction ) ;
96
96
}
97
97
}
98
98
Original file line number Diff line number Diff line change 86
86
Height =" 32"
87
87
Margin =" 0,0,0,0"
88
88
HorizontalAlignment =" Center"
89
- Source =" {Binding Image}"
89
+ Source =" {Binding Image, TargetNullValue={x:Null} }"
90
90
Stretch =" Uniform"
91
91
Visibility =" {Binding ShowIcon}" />
92
92
</Border >
You can’t perform that action at this time.
0 commit comments