Initial backend test for user-based data/customizations (#4144)

Right now only support for colors and no real UX, idea is to test it & allow the idea to grow while figuring out the UX
This commit is contained in:
pajlada
2022-11-13 18:21:21 +01:00
committed by GitHub
parent a9d3c00369
commit 1eabda8668
13 changed files with 372 additions and 1 deletions
+7
View File
@@ -11,6 +11,7 @@
#include "controllers/hotkeys/HotkeyController.hpp"
#include "controllers/ignores/IgnoreController.hpp"
#include "controllers/notifications/NotificationController.hpp"
#include "controllers/userdata/UserDataController.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "messages/MessageBuilder.hpp"
#include "providers/bttv/BttvEmotes.hpp"
@@ -76,6 +77,7 @@ Application::Application(Settings &_settings, Paths &_paths)
, chatterinoBadges(&this->emplace<ChatterinoBadges>())
, ffzBadges(&this->emplace<FfzBadges>())
, seventvBadges(&this->emplace<SeventvBadges>())
, userData(&this->emplace<UserDataController>())
, logging(&this->emplace<Logging>())
{
this->instance = this;
@@ -224,6 +226,11 @@ IEmotes *Application::getEmotes()
return this->emotes;
}
IUserDataController *Application::getUserData()
{
return this->userData;
}
void Application::save()
{
for (auto &singleton : this->singletons_)