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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user