diff --git a/src/emotemanager.cpp b/src/emotemanager.cpp index 515530701..be289d631 100644 --- a/src/emotemanager.cpp +++ b/src/emotemanager.cpp @@ -528,12 +528,18 @@ boost::signals2::signal &EmoteManager::getGifUpdateSignal() _gifUpdateTimer.setInterval(30); _gifUpdateTimer.start(); - QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] { - if (SettingsManager::getInstance().enableGifAnimations.getValue()) { - _gifUpdateTimerSignal(); - WindowManager::instance->repaintGifEmotes(); + SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) { + if (enabled) { + _gifUpdateTimer.start(); + } else { + _gifUpdateTimer.stop(); } }); + + QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] { + _gifUpdateTimerSignal(); + WindowManager::instance->repaintGifEmotes(); + }); } return _gifUpdateTimerSignal;