From 4326c5e29b279ba8ca58139848aaea4e3c62fb03 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 24 Nov 2021 03:14:41 -0500 Subject: remove SimpleIni as a dependency use Glib::KeyFile instead which is basically the same file format also read into and save from struct once, cuz its faster and less redundant --- src/components/friendslist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/friendslist.cpp') diff --git a/src/components/friendslist.cpp b/src/components/friendslist.cpp index 3896f02..1331d19 100644 --- a/src/components/friendslist.cpp +++ b/src/components/friendslist.cpp @@ -257,8 +257,7 @@ FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData auto &discord = Abaddon::Get().GetDiscordClient(); discord.signal_presence_update().connect(sigc::mem_fun(*this, &FriendsListFriendRow::OnPresenceUpdate)); - static bool show_animations = Abaddon::Get().GetSettings().GetShowAnimations(); - if (data.HasAnimatedAvatar() && show_animations) { + if (data.HasAnimatedAvatar() && Abaddon::Get().GetSettings().ShowAnimations) { img->SetAnimated(true); img->SetURL(data.GetAvatarURL("gif", "32")); } else { -- cgit v1.2.3