Move gif timer stuff to its own class

Clean up unused includes
This commit is contained in:
Rasmus Karlsson
2018-06-05 18:30:26 +02:00
committed by fourtf
parent 78664f79ee
commit 8e70f02e3b
7 changed files with 63 additions and 53 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ void Image::loadImage()
if (this->allFrames.size() > 1) {
if (!this->animated) {
util::postToThread([this] {
getApp()->emotes->getGifUpdateSignal().connect([=]() {
getApp()->emotes->gifTimer.signal.connect([=]() {
this->gifUpdateTimout();
}); // For some reason when Boost signal is in
// thread scope and thread deletes the signal