Fix result update interface issue

This commit is contained in:
Jack251970 2025-03-21 14:46:39 +08:00
parent dda008f80b
commit a160a78190
2 changed files with 2 additions and 2 deletions

View file

@ -131,6 +131,7 @@ namespace Flow.Launcher
Ioc.Default.GetRequiredService<Internationalization>().ChangeLanguage(_settings.Language);
PluginManager.LoadPlugins(_settings.PluginSettings);
Ioc.Default.GetRequiredService<MainViewModel>().RegisterResultsUpdatedEvent();
Http.Proxy = _settings.Proxy;

View file

@ -168,7 +168,6 @@ namespace Flow.Launcher.ViewModel
};
RegisterViewUpdate();
RegisterResultsUpdatedEvent();
_ = RegisterClockAndDateUpdateAsync();
}
@ -213,7 +212,7 @@ namespace Flow.Launcher.ViewModel
}
}
private void RegisterResultsUpdatedEvent()
public void RegisterResultsUpdatedEvent()
{
foreach (var pair in PluginManager.GetPluginsForInterface<IResultUpdated>())
{