Offer to show the troubleshooting log for terminal warnings too

This commit is contained in:
Cameron Gutman 2018-10-21 23:45:22 -07:00
parent f1738fc11e
commit 15d60ed10a

View File

@ -111,7 +111,7 @@ void DisplayMessage(const char* message, MessagePriority priority = MpError, boo
}
MessageBoxA(nullptr, message, "Moonlight Internet Streaming Tester", flags);
if (priority == MpError && terminal) {
if (priority != MpInfo && terminal) {
flags = MB_YESNO | MB_TOPMOST | MB_SETFOREGROUND | MB_ICONINFORMATION;
switch (MessageBoxA(nullptr, "Would you like to view the troubleshooting log?",
"Moonlight Internet Streaming Tester", flags))