Skip to content

Commit 5a80adc

Browse files
authored
Send a reload request with ctx when reloading
1 parent ed53736 commit 5a80adc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,16 @@ private void SetupJsonRPC()
133133
RPC.StartListening();
134134
}
135135

136-
public virtual Task ReloadDataAsync()
136+
public virtual async Task ReloadDataAsync()
137137
{
138138
SetupJsonRPC();
139-
return Task.CompletedTask;
139+
try
140+
{
141+
await RPC.InvokeAsync("reload", context);
142+
}
143+
catch (RemoteMethodNotFoundException e)
144+
{
145+
}
140146
}
141147

142148
public virtual async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)