From a283ab14a243e9b5ef96462147f7ca01b0d2c04c Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 14 May 2021 23:23:01 -0400 Subject: friends: respect show animations setting --- components/friendslist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/friendslist.cpp') diff --git a/components/friendslist.cpp b/components/friendslist.cpp index 7d9fc21..f31cc00 100644 --- a/components/friendslist.cpp +++ b/components/friendslist.cpp @@ -257,7 +257,8 @@ FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData auto &discord = Abaddon::Get().GetDiscordClient(); discord.signal_presence_update().connect(sigc::mem_fun(*this, &FriendsListFriendRow::OnPresenceUpdate)); - if (data.HasAnimatedAvatar()) { + static bool show_animations = Abaddon::Get().GetSettings().GetShowAnimations(); + if (data.HasAnimatedAvatar() && show_animations) { img->SetAnimated(true); img->SetURL(data.GetAvatarURL("gif", "32")); } else { -- cgit v1.2.3