mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
change logic
1. Disable animation when progressbar is hidden or mainwindow is collapsed 2. resume only when both visibility and progressbar visibility is visible
This commit is contained in:
parent
5d1790cb0e
commit
2db3f829e4
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
|
@ -85,9 +86,14 @@ namespace Flow.Launcher
|
|||
_viewModel.LastQuerySelected = true;
|
||||
}
|
||||
|
||||
if (_viewModel.ProgressBarVisibility == Visibility.Visible)
|
||||
{
|
||||
_progressBarStoryboard.Resume();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_progressBarStoryboard.Pause();
|
||||
}
|
||||
}
|
||||
else if (e.PropertyName == nameof(MainViewModel.ProgressBarVisibility))
|
||||
|
|
@ -98,7 +104,7 @@ namespace Flow.Launcher
|
|||
{
|
||||
_progressBarStoryboard.Pause();
|
||||
}
|
||||
else
|
||||
else if (Visibility == Visibility.Visible)
|
||||
{
|
||||
_progressBarStoryboard.Resume();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue