fix(toasts): only clear if initialized (#5752)

This commit is contained in:
nerix
2024-12-02 16:57:56 +01:00
committed by GitHub
parent a0324f212f
commit dcfb194648
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@
- Bugfix: Fixed incorrect message being disabled in some cases upon approving or denying an automod caught message. (#5611)
- Bugfix: Fixed network requests timing out despite them not being in flight for that long, for Qt 6.3+ where we have the technology. (#5729)
- Bugfix: Fixed double-click selection not working when clicking outside a message. (#5617)
- Bugfix: Fixed a potential rare crash that could occur on Windows if a toast was about to fire just as we were shutting down. (#5728)
- Bugfix: Fixed a rare crash that could occur on Windows if a toast was about to fire just as we were shutting down. (#5728, #5752)
- Bugfix: Fixed emotes starting with ":" not tab-completing. (#5603)
- Bugfix: Fixed 7TV emotes messing with Qt's HTML. (#5677)
- Bugfix: Fixed incorrect messages getting replaced visually. (#5683)
+4 -1
View File
@@ -73,7 +73,10 @@ using WinToastLib::WinToastTemplate;
Toasts::~Toasts()
{
#ifdef Q_OS_WIN
WinToast::instance()->clear();
if (this->initialized_)
{
WinToast::instance()->clear();
}
#endif
}