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:
@@ -4,8 +4,9 @@
|
||||
#include "common/FlagsEnum.hpp"
|
||||
#include "common/Literals.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "controllers/emotes/EmoteController.hpp"
|
||||
#include "controllers/hotkeys/HotkeyController.hpp"
|
||||
#include "singletons/Emotes.hpp"
|
||||
#include "singletons/helper/GifTimer.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/PostToThread.hpp"
|
||||
@@ -191,7 +192,7 @@ OverlayWindow::OverlayWindow(IndirectChannel channel,
|
||||
this->updateScale();
|
||||
|
||||
this->triggerFirstActivation();
|
||||
getApp()->getEmotes()->getGIFTimer().registerOpenOverlayWindow();
|
||||
getApp()->getEmotes()->getGIFTimer()->registerOpenOverlayWindow();
|
||||
}
|
||||
|
||||
OverlayWindow::~OverlayWindow()
|
||||
@@ -199,7 +200,7 @@ OverlayWindow::~OverlayWindow()
|
||||
#ifdef Q_OS_WIN
|
||||
::DestroyCursor(this->sizeAllCursor_);
|
||||
#endif
|
||||
getApp()->getEmotes()->getGIFTimer().unregisterOpenOverlayWindow();
|
||||
getApp()->getEmotes()->getGIFTimer()->unregisterOpenOverlayWindow();
|
||||
}
|
||||
|
||||
void OverlayWindow::applyTheme()
|
||||
|
||||
Reference in New Issue
Block a user