refactor: turn Emotes into EmoteController (#6516)
* refactor: turn `Emotes` into `EmoteController` * changelog * why does clang-format do this??? * nit: remove unused include from EmoteController.hpp --------- Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
#include "common/network/NetworkRequest.hpp"
|
||||
#include "common/network/NetworkResult.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "controllers/emotes/EmoteController.hpp"
|
||||
#include "debug/AssertInGuiThread.hpp"
|
||||
#include "debug/Benchmark.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "singletons/helper/GifTimer.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/DebugCount.hpp"
|
||||
@@ -58,7 +58,7 @@ Frames::Frames(QList<Frame> &&frames)
|
||||
DebugCount::increase("animated images");
|
||||
|
||||
this->gifTimerConnection_ =
|
||||
app->getEmotes()->getGIFTimer().signal.connect([this] {
|
||||
app->getEmotes()->getGIFTimer()->signal.connect([this] {
|
||||
this->advance();
|
||||
});
|
||||
|
||||
@@ -75,7 +75,7 @@ Frames::Frames(QList<Frame> &&frames)
|
||||
else
|
||||
{
|
||||
this->durationOffset_ = std::min<int>(
|
||||
int(app->getEmotes()->getGIFTimer().position() % totalLength),
|
||||
int(app->getEmotes()->getGIFTimer()->position() % totalLength),
|
||||
60000);
|
||||
}
|
||||
this->processOffset();
|
||||
|
||||
Reference in New Issue
Block a user