Skip to content

Commit 5688f37

Browse files
taoocerosimsh
andcommitted
Stop ProgressBar animation when Flow is hidden
Co-Authored-By: imsh <[email protected]>
1 parent 02211f2 commit 5688f37

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
Background="Transparent"/>
9898
</Grid>
9999
<Line x:Name="ProgressBar" HorizontalAlignment="Right"
100-
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay}"
100+
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
101101
Y1="0" Y2="0" X2="100" Height="2" Width="752" StrokeThickness="1">
102102
</Line>
103103
<ContentControl>

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,15 @@ private void OnLoaded(object sender, RoutedEventArgs _)
8484
QueryTextBox.SelectAll();
8585
_viewModel.LastQuerySelected = true;
8686
}
87+
88+
ProgressBar.BeginStoryboard(_progressBarStoryboard);
89+
}
90+
else
91+
{
92+
_progressBarStoryboard.Stop();
8793
}
8894
}
95+
8996
};
9097
_settings.PropertyChanged += (o, e) =>
9198
{

0 commit comments

Comments
 (0)