Skip to content

Commit a160a78

Browse files
committed
Fix result update interface issue
1 parent dda008f commit a160a78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
131131
Ioc.Default.GetRequiredService<Internationalization>().ChangeLanguage(_settings.Language);
132132

133133
PluginManager.LoadPlugins(_settings.PluginSettings);
134+
Ioc.Default.GetRequiredService<MainViewModel>().RegisterResultsUpdatedEvent();
134135

135136
Http.Proxy = _settings.Proxy;
136137

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ public MainViewModel()
168168
};
169169

170170
RegisterViewUpdate();
171-
RegisterResultsUpdatedEvent();
172171
_ = RegisterClockAndDateUpdateAsync();
173172
}
174173

@@ -213,7 +212,7 @@ void continueAction(Task t)
213212
}
214213
}
215214

216-
private void RegisterResultsUpdatedEvent()
215+
public void RegisterResultsUpdatedEvent()
217216
{
218217
foreach (var pair in PluginManager.GetPluginsForInterface<IResultUpdated>())
219218
{

0 commit comments

Comments
 (0)