summaryrefslogtreecommitdiff
path: root/src/windows/guildsettings/emojispane.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/emojispane.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/emojispane.cpp')
-rw-r--r--src/windows/guildsettings/emojispane.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/windows/guildsettings/emojispane.cpp b/src/windows/guildsettings/emojispane.cpp
index 1f4bfa9..57b697c 100644
--- a/src/windows/guildsettings/emojispane.cpp
+++ b/src/windows/guildsettings/emojispane.cpp
@@ -130,8 +130,7 @@ void GuildSettingsEmojisPane::AddEmojiRow(const EmojiData &emoji) {
else
row[m_columns.m_col_available] = "Yes";
- static bool show_animations = Abaddon::Get().GetSettings().GetShowAnimations();
- if (show_animations && emoji.IsAnimated.has_value() && *emoji.IsAnimated) {
+ if (Abaddon::Get().GetSettings().ShowAnimations && emoji.IsAnimated.has_value() && *emoji.IsAnimated) {
const auto cb = [this, id = emoji.ID](const Glib::RefPtr<Gdk::PixbufAnimation> &pb) {
for (auto &row : m_model->children()) {
if (static_cast<Snowflake>(row[m_columns.m_col_id]) == id) {