Merge pull request #3081 from Flow-Launcher/taooceros-patch-1

Reload Context
This commit is contained in:
Jeremy Wu 2025-02-23 11:01:13 +11:00 committed by GitHub
commit cc463c86ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,10 +112,15 @@ namespace Flow.Launcher.Core.Plugin
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()