Skip to content

Commit

Permalink
reset position twice according to microsoft/PowerToys#33784
Browse files Browse the repository at this point in the history
  • Loading branch information
taooceros committed Sep 21, 2024
1 parent 6f661ef commit 9031b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Flow.Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public MainWindow(Settings settings, MainViewModel mainVM)

InitializeComponent();
InitializePosition();
InitializePosition();

InitSoundEffects();

Expand Down Expand Up @@ -187,6 +188,7 @@ private void OnLoaded(object sender, RoutedEventArgs _)
WindowsInteropHelper.DisableControlBox(this);
InitProgressbarAnimation();
InitializePosition();
InitializePosition();
PreviewReset();
// since the default main window visibility is visible
// so we need set focus during startup
Expand Down Expand Up @@ -642,6 +644,7 @@ private void UpdatePosition()
if (_animating)
return;
InitializePosition();
InitializePosition();
}

private void OnLocationChanged(object sender, EventArgs e)
Expand Down

0 comments on commit 9031b2f

Please sign in to comment.