mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use _viewModel.MainWindowVisibility instead of Visibility
This commit is contained in:
parent
db63833e93
commit
36e6f5eccb
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ namespace Flow.Launcher
|
||||||
{
|
{
|
||||||
if (e.PropertyName == nameof(MainViewModel.MainWindowVisibility))
|
if (e.PropertyName == nameof(MainViewModel.MainWindowVisibility))
|
||||||
{
|
{
|
||||||
if (Visibility == Visibility.Visible)
|
if (_viewModel.MainWindowVisibility == Visibility.Visible)
|
||||||
{
|
{
|
||||||
Activate();
|
Activate();
|
||||||
QueryTextBox.Focus();
|
QueryTextBox.Focus();
|
||||||
|
|
@ -107,7 +107,7 @@ namespace Flow.Launcher
|
||||||
_progressBarStoryboard.Pause();
|
_progressBarStoryboard.Pause();
|
||||||
isProgressBarStoryboardPaused = true;
|
isProgressBarStoryboardPaused = true;
|
||||||
}
|
}
|
||||||
else if (Visibility == Visibility.Visible && isProgressBarStoryboardPaused)
|
else if (_viewModel.MainWindowVisibility == Visibility.Visible && isProgressBarStoryboardPaused)
|
||||||
{
|
{
|
||||||
_progressBarStoryboard.Resume();
|
_progressBarStoryboard.Resume();
|
||||||
isProgressBarStoryboardPaused = false;
|
isProgressBarStoryboardPaused = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue