[Toast] Skip during unit tests
This commit is contained in:
parent
36beb29f55
commit
0580e59d11
@ -146,7 +146,7 @@ namespace Components
|
||||
|
||||
Toast::Toast()
|
||||
{
|
||||
if (Dedicated::IsEnabled() || Monitor::IsEnabled()) return;
|
||||
if (Dedicated::IsEnabled() || Monitor::IsEnabled() || Loader::PerformingUnitTests()) return;
|
||||
|
||||
Toast::ToastHandler = new WinToastLib::WinToastHandler;
|
||||
|
||||
@ -172,7 +172,7 @@ namespace Components
|
||||
|
||||
void Toast::preDestroy()
|
||||
{
|
||||
if (Dedicated::IsEnabled() || Monitor::IsEnabled()) return;
|
||||
if (Dedicated::IsEnabled() || Monitor::IsEnabled() || Loader::PerformingUnitTests()) return;
|
||||
|
||||
// Destroying that on the main thread deadlocks.
|
||||
// I did not write the library, so whatever.
|
||||
|
Loading…
Reference in New Issue
Block a user