changing the "Enable gif emotes" setting just starts/stops the gif timer instead
This commit is contained in:
+10
-4
@@ -528,12 +528,18 @@ boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal()
|
|||||||
_gifUpdateTimer.setInterval(30);
|
_gifUpdateTimer.setInterval(30);
|
||||||
_gifUpdateTimer.start();
|
_gifUpdateTimer.start();
|
||||||
|
|
||||||
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] {
|
SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) {
|
||||||
if (SettingsManager::getInstance().enableGifAnimations.getValue()) {
|
if (enabled) {
|
||||||
_gifUpdateTimerSignal();
|
_gifUpdateTimer.start();
|
||||||
WindowManager::instance->repaintGifEmotes();
|
} else {
|
||||||
|
_gifUpdateTimer.stop();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] {
|
||||||
|
_gifUpdateTimerSignal();
|
||||||
|
WindowManager::instance->repaintGifEmotes();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return _gifUpdateTimerSignal;
|
return _gifUpdateTimerSignal;
|
||||||
|
|||||||
Reference in New Issue
Block a user