summaryrefslogtreecommitdiff
path: root/src/windows/guildsettings/memberspane.cpp
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/guildsettings/memberspane.cpp
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/guildsettings/memberspane.cpp')
-rw-r--r--src/windows/guildsettings/memberspane.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/windows/guildsettings/memberspane.cpp b/src/windows/guildsettings/memberspane.cpp
index 36c5c0b..9dc76d3 100644
--- a/src/windows/guildsettings/memberspane.cpp
+++ b/src/windows/guildsettings/memberspane.cpp
@@ -99,7 +99,7 @@ GuildSettingsMembersListItem::GuildSettingsMembersListItem(const GuildData &guil
auto &discord = Abaddon::Get().GetDiscordClient();
- if (member.User->HasAnimatedAvatar() && Abaddon::Get().GetSettings().GetShowAnimations())
+ if (member.User->HasAnimatedAvatar() && Abaddon::Get().GetSettings().ShowAnimations)
m_avatar.SetURL(member.User->GetAvatarURL("gif", "32"));
else
m_avatar.SetURL(member.User->GetAvatarURL("png", "32"));
@@ -113,8 +113,7 @@ GuildSettingsMembersListItem::GuildSettingsMembersListItem(const GuildData &guil
discord.signal_guild_member_update().connect(sigc::track_obj(member_update_cb, *this));
UpdateColor();
- static bool crown = Abaddon::Get().GetSettings().GetShowOwnerCrown();
- if (crown && guild.OwnerID == member.User->ID) {
+ if (Abaddon::Get().GetSettings().ShowOwnerCrown && guild.OwnerID == member.User->ID) {
try {
const static auto crown_path = Abaddon::GetResPath("/crown.png");
auto pixbuf = Gdk::Pixbuf::create_from_file(crown_path, 12, 12);