mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Stop ProgressBar animation when Flow is hidden
Co-Authored-By: imsh <9258159+imsh@users.noreply.github.com>
This commit is contained in:
parent
02211f2853
commit
5688f377e0
2 changed files with 8 additions and 1 deletions
|
|
@ -97,7 +97,7 @@
|
|||
Background="Transparent"/>
|
||||
</Grid>
|
||||
<Line x:Name="ProgressBar" HorizontalAlignment="Right"
|
||||
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay}"
|
||||
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Y1="0" Y2="0" X2="100" Height="2" Width="752" StrokeThickness="1">
|
||||
</Line>
|
||||
<ContentControl>
|
||||
|
|
|
|||
|
|
@ -84,8 +84,15 @@ namespace Flow.Launcher
|
|||
QueryTextBox.SelectAll();
|
||||
_viewModel.LastQuerySelected = true;
|
||||
}
|
||||
|
||||
ProgressBar.BeginStoryboard(_progressBarStoryboard);
|
||||
}
|
||||
else
|
||||
{
|
||||
_progressBarStoryboard.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
_settings.PropertyChanged += (o, e) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue