refactor: Turn link-info into its own element and class (#5178)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "controllers/sound/ISoundController.hpp"
|
||||
#include "providers/bttv/BttvEmotes.hpp"
|
||||
#include "providers/ffz/FfzEmotes.hpp"
|
||||
#include "providers/links/LinkResolver.hpp"
|
||||
#include "providers/seventv/SeventvAPI.hpp"
|
||||
#include "providers/seventv/SeventvEmotes.hpp"
|
||||
#include "providers/twitch/TwitchBadges.hpp"
|
||||
@@ -142,6 +143,7 @@ Application::Application(Settings &_settings, const Paths &paths,
|
||||
, ffzEmotes(new FfzEmotes)
|
||||
, seventvEmotes(new SeventvEmotes)
|
||||
, logging(new Logging(_settings))
|
||||
, linkResolver(new LinkResolver)
|
||||
#ifdef CHATTERINO_HAVE_PLUGINS
|
||||
, plugins(&this->emplace(new PluginController(paths)))
|
||||
#endif
|
||||
@@ -494,6 +496,13 @@ Logging *Application::getChatLogger()
|
||||
return this->logging.get();
|
||||
}
|
||||
|
||||
ILinkResolver *Application::getLinkResolver()
|
||||
{
|
||||
assertInGuiThread();
|
||||
|
||||
return this->linkResolver.get();
|
||||
}
|
||||
|
||||
BttvEmotes *Application::getBttvEmotes()
|
||||
{
|
||||
assertInGuiThread();
|
||||
|
||||
Reference in New Issue
Block a user