diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 747975b2a62..9d6b51dccd8 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -342,6 +342,7 @@ Margin="12 0 12 0" HorizontalAlignment="Center" VerticalAlignment="Bottom" + Loaded="ProgressBar_Loaded" StrokeThickness="2" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" X1="-100" diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 06b2dda9eed..60517db9736 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -199,9 +199,6 @@ private void OnLoaded(object sender, RoutedEventArgs e) ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark; } - // Initialize position - InitProgressbarAnimation(); - // Force update position UpdatePosition(); @@ -354,6 +351,11 @@ private void OnLoaded(object sender, RoutedEventArgs e) } } + private void ProgressBar_Loaded(object sender, RoutedEventArgs e) + { + InitProgressbarAnimation(); + } + private async void OnClosing(object sender, CancelEventArgs e) { if (!CanClose)