fixed gifs still playing after disabling them
This commit is contained in:
@@ -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] {
|
||||||
_gifUpdateTimerSignal();
|
if (SettingsManager::getInstance().enableGifAnimations.getValue()) {
|
||||||
WindowManager::instance->repaintGifEmotes();
|
_gifUpdateTimerSignal();
|
||||||
|
WindowManager::instance->repaintGifEmotes();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user