Fix startup flicker

This commit is contained in:
Jack251970 2025-05-09 15:57:18 +08:00
parent 2d2f7de687
commit 29f94d66c2
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();