From 5735731c3ef023596c35b1c6bb7ac28c314eac53 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 23 Feb 2017 21:36:02 +0100 Subject: [PATCH] [Toast] Disable toasts for dedis --- src/Components/Modules/Toast.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/Modules/Toast.cpp b/src/Components/Modules/Toast.cpp index 501db34a..a22767cd 100644 --- a/src/Components/Modules/Toast.cpp +++ b/src/Components/Modules/Toast.cpp @@ -146,6 +146,8 @@ namespace Components Toast::Toast() { + if (Dedicated::IsEnabled()) return; + Toast::ToastHandler = new WinToastLib::WinToastHandler; WinToastLib::WinToast::instance()->setAppName(L"IW4x"); @@ -170,6 +172,8 @@ namespace Components void Toast::preDestroy() { + if (Dedicated::IsEnabled()) return; + // Destroying that on the main thread deadlocks, for whatever reason. // I did not write the library, so whatever. std::thread([]()