From ec638874d9612438a3731891c5d25bfdc42cd74a Mon Sep 17 00:00:00 2001 From: Date: Sun, 17 Dec 2017 03:46:12 +0100 Subject: [PATCH] fixed gifs still playing after disabling them --- src/emotemanager.cpp | 7 +++++-- src/windowmanager.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/emotemanager.cpp b/src/emotemanager.cpp index 9ff7690b9..1b60a6037 100644 --- a/src/emotemanager.cpp +++ b/src/emotemanager.cpp @@ -1,5 +1,6 @@ #include "emotemanager.hpp" #include "common.hpp" +#include "settingsmanager.hpp" #include "util/urlfetch.hpp" #include "windowmanager.hpp" @@ -528,8 +529,10 @@ boost::signals2::signal &EmoteManager::getGifUpdateSignal() _gifUpdateTimer.start(); QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] { - _gifUpdateTimerSignal(); - WindowManager::instance->repaintGifEmotes(); + if (SettingsManager::getInstance().enableGifAnimations.getValue()) { + _gifUpdateTimerSignal(); + WindowManager::instance->repaintGifEmotes(); + } }); } diff --git a/src/windowmanager.cpp b/src/windowmanager.cpp index 3ef4e07b2..80cd9b4dc 100644 --- a/src/windowmanager.cpp +++ b/src/windowmanager.cpp @@ -2,6 +2,7 @@ #include "appdatapath.hpp" #include "channelmanager.hpp" #include "colorscheme.hpp" +#include "settingsmanager.hpp" #include #include