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
+5
View File
@@ -38,6 +38,11 @@ Channel::Channel(const QString &name, Type type)
Channel::~Channel()
{
auto *app = tryGetApp();
if (app)
{
app->getChatLogger()->closeChannel(this->name_, this->platform_);
}
this->destroyed.invoke();
}