mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #4313 from Flow-Launcher/InitProgressbarAnimation_Null
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
Move progress bar animation init to Loaded event to fix possible null exception of ProgressBar
This commit is contained in:
commit
12c4b4d711
2 changed files with 6 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -199,9 +199,6 @@ namespace Flow.Launcher
|
|||
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark;
|
||||
}
|
||||
|
||||
// Initialize position
|
||||
InitProgressbarAnimation();
|
||||
|
||||
// Force update position
|
||||
UpdatePosition();
|
||||
|
||||
|
|
@ -354,6 +351,11 @@ namespace Flow.Launcher
|
|||
}
|
||||
}
|
||||
|
||||
private void ProgressBar_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
InitProgressbarAnimation();
|
||||
}
|
||||
|
||||
private async void OnClosing(object sender, CancelEventArgs e)
|
||||
{
|
||||
if (!CanClose)
|
||||
|
|
|
|||
Loading…
Reference in a new issue