Send a reload request with ctx when reloading

This commit is contained in:
Kevin Zhang 2024-11-17 23:59:43 -06:00 committed by GitHub
parent ed5373653d
commit 5a80adcbfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,10 +133,16 @@ 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", context);
}
catch (RemoteMethodNotFoundException e)
{
}
}
public virtual async ValueTask DisposeAsync()