File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,23 @@ protected override async Task<bool> ExecuteResultAsync(JsonRPCResult result)
39
39
}
40
40
}
41
41
42
+ private JoinableTaskFactory JTF { get ; } = new JoinableTaskFactory ( new JoinableTaskContext ( ) ) ;
43
+
42
44
public override List < Result > LoadContextMenus ( Result selectedResult )
43
45
{
44
- throw new NotImplementedException ( ) ;
46
+ try
47
+ {
48
+ var res = JTF . Run ( ( ) => RPC . InvokeWithCancellationAsync < JsonRPCQueryResponseModel > ( "context_menu" ,
49
+ new object [ ] { selectedResult . ContextData } ) ) ;
50
+
51
+ var results = ParseResults ( res ) ;
52
+
53
+ return results ;
54
+ }
55
+ catch
56
+ {
57
+ return new List < Result > ( ) ;
58
+ }
45
59
}
46
60
47
61
public override async Task < List < Result > > QueryAsync ( Query query , CancellationToken token )
You can’t perform that action at this time.
0 commit comments