mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Send a reload request with ctx when reloading
This commit is contained in:
parent
ed5373653d
commit
5a80adcbfe
1 changed files with 8 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue