Merge pull request #3521 from Flow-Launcher/startup_flicker

Fix startup flicker
This commit is contained in:
Jack Ye 2025-05-10 09:33:49 +08:00 committed by GitHub
commit 2fdab6184c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View file

@ -203,7 +203,7 @@ namespace Flow.Launcher
// 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<Theme>().ChangeTheme();
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

View file

@ -166,9 +166,6 @@ namespace Flow.Launcher
// Force update position
UpdatePosition();
// Refresh frame
await _theme.RefreshFrameAsync();
// Initialize resize mode after refreshing frame
SetupResizeMode();