Skip to content

Commit 0f8553b

Browse files
committed
Refresh home page after plugins are initialized
1 parent 269d21a commit 0f8553b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () =>
253253

254254
await PluginManager.InitializePluginsAsync(_mainVM);
255255

256+
// Refresh home page after plugins are initialized because users may open main window during plugin initialization
257+
// And home page is created without full plugin list
258+
if (_settings.ShowHomePage && _mainVM.QueryResultsSelected() && string.IsNullOrEmpty(_mainVM.QueryText))
259+
{
260+
_mainVM.QueryResults();
261+
}
262+
256263
AutoPluginUpdates();
257264

258265
// Save all settings since we possibly update the plugin environment paths

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.ComponentModel;
66
using System.Diagnostics;
77
using System.IO;
8-
using System.Linq;
98
using System.Net;
109
using System.Runtime.CompilerServices;
1110
using System.Threading;

0 commit comments

Comments
 (0)