Skip to content

Commit 3966290

Browse files
committed
Refresh frame after position is intialized
1 parent 6f093cf commit 3966290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ private void OnInitialized(object sender, EventArgs e)
179179

180180
private async void OnLoaded(object sender, RoutedEventArgs _)
181181
{
182-
// Refresh frame
183-
await ThemeManager.Instance.RefreshFrameAsync();
184182
// MouseEventHandler
185183
PreviewMouseMove += MainPreviewMouseMove;
186184
CheckFirstLaunch();
@@ -193,6 +191,8 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
193191
// Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910
194192
InitializePosition();
195193
InitializePosition();
194+
// Refresh frame after position is intialized
195+
await ThemeManager.Instance.RefreshFrameAsync();
196196
PreviewReset();
197197
// since the default main window visibility is visible
198198
// so we need set focus during startup

0 commit comments

Comments
 (0)