mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed gifs still playing after disabling them
This commit is contained in:
parent
c1ac7db24c
commit
ec638874d9
2 changed files with 6 additions and 2 deletions
|
@ -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<void()> &EmoteManager::getGifUpdateSignal()
|
|||
_gifUpdateTimer.start();
|
||||
|
||||
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] {
|
||||
if (SettingsManager::getInstance().enableGifAnimations.getValue()) {
|
||||
_gifUpdateTimerSignal();
|
||||
WindowManager::instance->repaintGifEmotes();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "appdatapath.hpp"
|
||||
#include "channelmanager.hpp"
|
||||
#include "colorscheme.hpp"
|
||||
#include "settingsmanager.hpp"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QStandardPaths>
|
||||
|
|
Loading…
Reference in a new issue