fixed gifs still playing after disabling them

This commit is contained in:
2017-12-17 03:46:12 +01:00
parent c1ac7db24c
commit ec638874d9
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
#include "emotemanager.hpp" #include "emotemanager.hpp"
#include "common.hpp" #include "common.hpp"
#include "settingsmanager.hpp"
#include "util/urlfetch.hpp" #include "util/urlfetch.hpp"
#include "windowmanager.hpp" #include "windowmanager.hpp"
@ -528,8 +529,10 @@ boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal()
_gifUpdateTimer.start(); _gifUpdateTimer.start();
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] { QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] {
if (SettingsManager::getInstance().enableGifAnimations.getValue()) {
_gifUpdateTimerSignal(); _gifUpdateTimerSignal();
WindowManager::instance->repaintGifEmotes(); WindowManager::instance->repaintGifEmotes();
}
}); });
} }

View file

@ -2,6 +2,7 @@
#include "appdatapath.hpp" #include "appdatapath.hpp"
#include "channelmanager.hpp" #include "channelmanager.hpp"
#include "colorscheme.hpp" #include "colorscheme.hpp"
#include "settingsmanager.hpp"
#include <QDebug> #include <QDebug>
#include <QStandardPaths> #include <QStandardPaths>