Skip to content

Commit

Permalink
Merge pull request #3081 from Flow-Launcher/taooceros-patch-1
Browse files Browse the repository at this point in the history
Reload Context
  • Loading branch information
jjw24 authored Feb 23, 2025
2 parents 4b03aa4 + 3dade8b commit cc463c8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,15 @@ private void SetupJsonRPC()
RPC.StartListening();
}

public virtual Task ReloadDataAsync()
public virtual async Task ReloadDataAsync()
{
SetupJsonRPC();
return Task.CompletedTask;
try
{
await RPC.InvokeAsync("reload_data", Context);
}
catch (RemoteMethodNotFoundException e)
{
}
}

public virtual async ValueTask DisposeAsync()
Expand Down

0 comments on commit cc463c8

Please sign in to comment.