Skip to content

Commit 9031b2f

Browse files
committed
reset position twice according to microsoft/PowerToys#33784
1 parent 6f661ef commit 9031b2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public MainWindow(Settings settings, MainViewModel mainVM)
5959

6060
InitializeComponent();
6161
InitializePosition();
62+
InitializePosition();
6263

6364
InitSoundEffects();
6465

@@ -187,6 +188,7 @@ private void OnLoaded(object sender, RoutedEventArgs _)
187188
WindowsInteropHelper.DisableControlBox(this);
188189
InitProgressbarAnimation();
189190
InitializePosition();
191+
InitializePosition();
190192
PreviewReset();
191193
// since the default main window visibility is visible
192194
// so we need set focus during startup
@@ -642,6 +644,7 @@ private void UpdatePosition()
642644
if (_animating)
643645
return;
644646
InitializePosition();
647+
InitializePosition();
645648
}
646649

647650
private void OnLocationChanged(object sender, EventArgs e)

0 commit comments

Comments
 (0)