feat: add setting for showing pronouns in user info popup (#5442)

This uses https://pr.alejo.io/

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Timo Zuccarello
2024-09-08 11:19:43 +02:00
committed by GitHub
parent aae1288112
commit 9375bce555
18 changed files with 402 additions and 0 deletions
+10
View File
@@ -15,6 +15,7 @@
#include "providers/bttv/BttvEmotes.hpp"
#include "providers/ffz/FfzEmotes.hpp"
#include "providers/links/LinkResolver.hpp"
#include "providers/pronouns/Pronouns.hpp"
#include "providers/seventv/SeventvAPI.hpp"
#include "providers/seventv/SeventvEmotes.hpp"
#include "providers/twitch/TwitchBadges.hpp"
@@ -178,6 +179,7 @@ Application::Application(Settings &_settings, const Paths &paths,
, linkResolver(new LinkResolver)
, streamerMode(new StreamerMode)
, twitchUsers(new TwitchUsers)
, pronouns(std::make_shared<pronouns::Pronouns>())
#ifdef CHATTERINO_HAVE_PLUGINS
, plugins(new PluginController(paths))
#endif
@@ -565,6 +567,14 @@ SeventvEventAPI *Application::getSeventvEventAPI()
return this->seventvEventAPI.get();
}
pronouns::Pronouns *Application::getPronouns()
{
// pronouns::Pronouns handles its own locks, so we don't need to assert that this is called in the GUI thread
assert(this->pronouns);
return this->pronouns.get();
}
void Application::save()
{
this->commands->save();