Refresh home page after plugins are initialized

This commit is contained in:
Jack251970 2025-07-21 19:39:42 +08:00
parent 269d21a4c0
commit 0f8553b45d
2 changed files with 7 additions and 1 deletions

View file

@ -253,6 +253,13 @@ namespace Flow.Launcher
await PluginManager.InitializePluginsAsync(_mainVM);
// Refresh home page after plugins are initialized because users may open main window during plugin initialization
// And home page is created without full plugin list
if (_settings.ShowHomePage && _mainVM.QueryResultsSelected() && string.IsNullOrEmpty(_mainVM.QueryText))
{
_mainVM.QueryResults();
}
AutoPluginUpdates();
// Save all settings since we possibly update the plugin environment paths

View file

@ -5,7 +5,6 @@ using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading;