summaryrefslogtreecommitdiff
path: root/src/windows/profile
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-11-24 03:14:41 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-11-24 03:15:22 -0500
commit4326c5e29b279ba8ca58139848aaea4e3c62fb03 (patch)
treedd416b391b622cd8dc3050c1c51ccc3cbfc40705 /src/windows/profile
parenta51a54bc5979a2491f152abc47ad54e6b63f27c8 (diff)
downloadabaddon-portaudio-4326c5e29b279ba8ca58139848aaea4e3c62fb03.tar.gz
abaddon-portaudio-4326c5e29b279ba8ca58139848aaea4e3c62fb03.zip
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
Diffstat (limited to 'src/windows/profile')
-rw-r--r--src/windows/profile/mutualfriendspane.cpp3
-rw-r--r--src/windows/profile/mutualguildspane.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/windows/profile/mutualfriendspane.cpp b/src/windows/profile/mutualfriendspane.cpp
index 339fd71..ca36e1d 100644
--- a/src/windows/profile/mutualfriendspane.cpp
+++ b/src/windows/profile/mutualfriendspane.cpp
@@ -9,10 +9,9 @@ MutualFriendItem::MutualFriendItem(const UserData &user)
m_avatar.set_margin_end(10);
- const auto show_animations = Abaddon::Get().GetSettings().GetShowAnimations();
auto &img = Abaddon::Get().GetImageManager();
m_avatar.property_pixbuf() = img.GetPlaceholder(24);
- if (user.HasAnimatedAvatar() && show_animations) {
+ if (user.HasAnimatedAvatar() && Abaddon::Get().GetSettings().ShowAnimations) {
auto cb = [this](const Glib::RefPtr<Gdk::PixbufAnimation> &pb) {
m_avatar.property_pixbuf_animation() = pb;
};
diff --git a/src/windows/profile/mutualguildspane.cpp b/src/windows/profile/mutualguildspane.cpp
index 6bfdc7b..6c14fc4 100644
--- a/src/windows/profile/mutualguildspane.cpp
+++ b/src/windows/profile/mutualguildspane.cpp
@@ -13,11 +13,10 @@ MutualGuildItem::MutualGuildItem(const MutualGuildData &guild)
// discord will return info (id + nick) for "deleted" guilds from this endpoint. strange !
const auto data = Abaddon::Get().GetDiscordClient().GetGuild(guild.ID);
if (data.has_value()) {
- const auto show_animations = Abaddon::Get().GetSettings().GetShowAnimations();
auto &img = Abaddon::Get().GetImageManager();
m_icon.property_pixbuf() = img.GetPlaceholder(24);
if (data->HasIcon()) {
- if (data->HasAnimatedIcon() && show_animations) {
+ if (data->HasAnimatedIcon() && Abaddon::Get().GetSettings().ShowAnimations) {
auto cb = [this](const Glib::RefPtr<Gdk::PixbufAnimation> &pb) {
m_icon.property_pixbuf_animation() = pb;
};