From 93f57c0970bfd166f21d600da5dc3b572f42e697 Mon Sep 17 00:00:00 2001 From: tomcw Date: Wed, 28 Feb 2018 21:22:40 +0000 Subject: [PATCH] Logging: allowing logging of PrintScreen even when switch is used to suppress MsgBox --- source/Applewin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index 23104cca..2ec48ffc 100644 --- a/source/Applewin.cpp +++ b/source/Applewin.cpp @@ -847,7 +847,7 @@ void AppleWin_RegisterHotKeys(void) VK_SNAPSHOT // UINT vk = PrintScreen ); - if ((!bStatus[0] || !bStatus[1] || !bStatus[2]) && g_bShowPrintScreenWarningDialog) + if ((!bStatus[0] || !bStatus[1] || !bStatus[2])) { std::string msg("Unable to register for PrintScreen key(s):\n"); @@ -858,7 +858,8 @@ void AppleWin_RegisterHotKeys(void) if (!bStatus[2]) msg += "\n. Ctrl+PrintScreen"; - MessageBox( g_hFrameWindow, msg.c_str(), "Warning", MB_ICONASTERISK | MB_OK ); + if (g_bShowPrintScreenWarningDialog) + MessageBox( g_hFrameWindow, msg.c_str(), "Warning", MB_ICONASTERISK | MB_OK ); msg += "\n"; LogFileOutput(msg.c_str());