From 3966290a0889a3667de3966d2dc41cb0337c0e7c Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 16 Mar 2025 16:48:49 +0800 Subject: [PATCH] Refresh frame after position is intialized --- Flow.Launcher/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index f8c4d36cc..04e7867b1 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -179,8 +179,6 @@ namespace Flow.Launcher private async void OnLoaded(object sender, RoutedEventArgs _) { - // Refresh frame - await ThemeManager.Instance.RefreshFrameAsync(); // MouseEventHandler PreviewMouseMove += MainPreviewMouseMove; CheckFirstLaunch(); @@ -193,6 +191,8 @@ namespace Flow.Launcher // Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910 InitializePosition(); InitializePosition(); + // Refresh frame after position is intialized + await ThemeManager.Instance.RefreshFrameAsync(); PreviewReset(); // since the default main window visibility is visible // so we need set focus during startup