Skip to content

Commit cc463c8

Browse files
authored
Merge pull request #3081 from Flow-Launcher/taooceros-patch-1
Reload Context
2 parents 4b03aa4 + 3dade8b commit cc463c8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,15 @@ private void SetupJsonRPC()
112112
RPC.StartListening();
113113
}
114114

115-
public virtual Task ReloadDataAsync()
115+
public virtual async Task ReloadDataAsync()
116116
{
117-
SetupJsonRPC();
118-
return Task.CompletedTask;
117+
try
118+
{
119+
await RPC.InvokeAsync("reload_data", Context);
120+
}
121+
catch (RemoteMethodNotFoundException e)
122+
{
123+
}
119124
}
120125

121126
public virtual async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)