refactor: make Application::seventvAPI private

This commit is contained in:
Rasmus Karlsson 2024-01-18 23:45:28 +01:00
parent 7629190589
commit e63a105d94
2 changed files with 9 additions and 7 deletions

View file

@ -412,6 +412,13 @@ ImageUploader *Application::getImageUploader()
return this->imageUploader;
}
SeventvAPI *Application::getSeventvAPI()
{
assertInGuiThread();
return this->seventvAPI;
}
ITwitchIrcServer *Application::getTwitch()
{
assertInGuiThread();

View file

@ -135,9 +135,9 @@ private:
WindowManager *const windows{};
Toasts *const toasts{};
ImageUploader *const imageUploader{};
SeventvAPI *const seventvAPI{};
public:
SeventvAPI *const seventvAPI{};
CrashHandler *const crashHandler{};
CommandController *const commands{};
@ -211,12 +211,7 @@ public:
TwitchBadges *getTwitchBadges() override;
IChatterinoBadges *getChatterinoBadges() override;
ImageUploader *getImageUploader() override;
SeventvAPI *getSeventvAPI() override
{
assertInGuiThread();
return this->seventvAPI;
}
SeventvAPI *getSeventvAPI() override;
Updates &getUpdates() override
{
assertInGuiThread();