chore: unsingletonize UserDataController (#5459)

The `user-data.json` file will save immediately on change, and on exit
(on dtor) if necessary. So we don't need to manually call save
This commit is contained in:
pajlada
2024-06-16 13:59:12 +02:00
committed by GitHub
parent a714bf066f
commit c9a0691f53
5 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ private:
std::unique_ptr<TwitchIrcServer> twitch;
FfzBadges *const ffzBadges{};
SeventvBadges *const seventvBadges{};
UserDataController *const userData{};
std::unique_ptr<UserDataController> userData;
ISoundController *const sound{};
TwitchLiveController *const twitchLiveController{};
std::unique_ptr<PubSub> twitchPubSub;