fix: memory leak caused by animation

This commit is contained in:
leo 2024-05-30 17:30:54 +08:00
parent 092bf15906
commit 73cfeca8a9
5 changed files with 109 additions and 24 deletions

View file

@ -17,7 +17,9 @@ namespace SourceGit.Views
protected override void OnLoaded(RoutedEventArgs e)
{
base.OnLoaded(e);
StartAnim();
if (IsVisible)
StartAnim();
}
protected override void OnUnloaded(RoutedEventArgs e)