fix(toasts): only clear if initialized (#5752)
This commit is contained in:
@@ -73,7 +73,10 @@ using WinToastLib::WinToastTemplate;
|
||||
Toasts::~Toasts()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
WinToast::instance()->clear();
|
||||
if (this->initialized_)
|
||||
{
|
||||
WinToast::instance()->clear();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user