fix: popup running animation did not update after switch back from another page

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-28 11:57:36 +08:00
parent b4f1f35e67
commit 2698427cd0
No known key found for this signature in database
2 changed files with 15 additions and 6 deletions

View file

@ -21,6 +21,15 @@ namespace SourceGit.Views
InitializeComponent();
}
protected override void OnLoaded(RoutedEventArgs e)
{
base.OnLoaded(e);
_isUnloading = false;
if (IsVisible)
StartAnim();
}
protected override void OnUnloaded(RoutedEventArgs e)
{
_isUnloading = true;