diff --git a/ValorantCC/SubWindow/ProfilesWindow.xaml b/ValorantCC/SubWindow/ProfilesWindow.xaml
index ea71d84..045cce2 100644
--- a/ValorantCC/SubWindow/ProfilesWindow.xaml
+++ b/ValorantCC/SubWindow/ProfilesWindow.xaml
@@ -29,7 +29,7 @@
-
+
diff --git a/ValorantCC/SubWindow/ProfilesWindow.xaml.cs b/ValorantCC/SubWindow/ProfilesWindow.xaml.cs
index fb376ce..850c6d5 100644
--- a/ValorantCC/SubWindow/ProfilesWindow.xaml.cs
+++ b/ValorantCC/SubWindow/ProfilesWindow.xaml.cs
@@ -42,7 +42,6 @@ private async void Border_Loaded(object sender, RoutedEventArgs e)
LoadingPlaceHolder.Visibility = Visibility.Visible;
await InitialFetch();
LoadingPlaceHolder.Visibility = Visibility.Collapsed;
- WpfAnimatedGif.ImageBehavior.GetAnimationController(LoadingPlaceHolder).Pause();
await RenderProfiles();
}
@@ -166,5 +165,13 @@ private void Border_MouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed) DragMove();
}
+
+ private void LoadingPlaceHolder_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
+ {
+ if (LoadingPlaceHolder.Visibility == Visibility.Visible)
+ WpfAnimatedGif.ImageBehavior.GetAnimationController(LoadingPlaceHolder)?.Play();
+ else
+ WpfAnimatedGif.ImageBehavior.GetAnimationController(LoadingPlaceHolder)?.Pause();
+ }
}
}