From 29f94d66c229cd4036fc00f48e64add87d0fab00 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Fri, 9 May 2025 15:57:18 +0800 Subject: [PATCH] Fix startup flicker --- Flow.Launcher/App.xaml.cs | 2 +- Flow.Launcher/MainWindow.xaml.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index 402812a92d7..942e9447037 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -203,7 +203,7 @@ await API.StopwatchLogInfoAsync(ClassName, "Startup cost", async () => // it will steal focus from main window which causes window hide HotKeyMapper.Initialize(); - // Main windows needs initialized before theme change because of blur settings + // Initialize theme for main window Ioc.Default.GetRequiredService().ChangeTheme(); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index e2948c54043..e243549e31e 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -166,9 +166,6 @@ private async void OnLoaded(object sender, RoutedEventArgs _) // Force update position UpdatePosition(); - // Refresh frame - await _theme.RefreshFrameAsync(); - // Initialize resize mode after refreshing frame SetupResizeMode();