fix: deadlock and use-after-free in tests (#4981)
* fix: use-after-free in settings * refactor: put seventv api into a singleton * chore: add changelog entry * Add warning for when the 7TV load fails
This commit is contained in:
@@ -42,6 +42,7 @@ class ChatterinoBadges;
|
||||
class FfzBadges;
|
||||
class SeventvBadges;
|
||||
class ImageUploader;
|
||||
class SeventvAPI;
|
||||
|
||||
class IApplication
|
||||
{
|
||||
@@ -68,6 +69,7 @@ public:
|
||||
virtual IUserDataController *getUserData() = 0;
|
||||
virtual ITwitchLiveController *getTwitchLiveController() = 0;
|
||||
virtual ImageUploader *getImageUploader() = 0;
|
||||
virtual SeventvAPI *getSeventvAPI() = 0;
|
||||
};
|
||||
|
||||
class Application : public IApplication
|
||||
@@ -97,6 +99,7 @@ public:
|
||||
WindowManager *const windows{};
|
||||
Toasts *const toasts{};
|
||||
ImageUploader *const imageUploader{};
|
||||
SeventvAPI *const seventvAPI{};
|
||||
|
||||
CommandController *const commands{};
|
||||
NotificationController *const notifications{};
|
||||
@@ -174,6 +177,10 @@ public:
|
||||
{
|
||||
return this->imageUploader;
|
||||
}
|
||||
SeventvAPI *getSeventvAPI() override
|
||||
{
|
||||
return this->seventvAPI;
|
||||
}
|
||||
|
||||
pajlada::Signals::NoArgSignal streamerModeChanged;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user