fix: close logging-channels when closing channels (#5592)

Co-authored-by: kornes <28986062+kornes@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2024-09-14 12:17:31 +02:00
committed by GitHub
parent 2afa227139
commit 694cc2dbff
13 changed files with 106 additions and 15 deletions
+7 -1
View File
@@ -149,6 +149,7 @@ Application::Application(Settings &_settings, const Paths &paths,
, args_(_args)
, themes(new Theme(paths))
, fonts(new Fonts(_settings))
, logging(new Logging(_settings))
, emotes(new Emotes)
, accounts(new AccountController)
, hotkeys(new HotkeyController)
@@ -175,7 +176,6 @@ Application::Application(Settings &_settings, const Paths &paths,
, ffzEmotes(new FfzEmotes)
, seventvEmotes(new SeventvEmotes)
, seventvEventAPI(makeSeventvEventAPI(_settings))
, logging(new Logging(_settings))
, linkResolver(new LinkResolver)
, streamerMode(new StreamerMode)
, twitchUsers(new TwitchUsers)
@@ -503,6 +503,7 @@ PubSub *Application::getTwitchPubSub()
ILogging *Application::getChatLogger()
{
assertInGuiThread();
assert(this->logging);
return this->logging.get();
}
@@ -697,4 +698,9 @@ IApplication *getApp()
return INSTANCE;
}
IApplication *tryGetApp()
{
return INSTANCE;
}
} // namespace chatterino