1
0
Fork 0

Merge pull request #3899 from wwylele/no-double-log

citra_qt: only toggle console if the setting has been changed
This commit is contained in:
Weiyi Wang 2018-07-07 18:47:35 +03:00 committed by GitHub
commit c1580c406d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@
namespace Debugger { namespace Debugger {
void ToggleConsole() { void ToggleConsole() {
static bool console_shown = false;
if (console_shown == UISettings::values.show_console) {
return;
} else {
console_shown = UISettings::values.show_console;
}
#ifdef _WIN32 #ifdef _WIN32
FILE* temp; FILE* temp;
if (UISettings::values.show_console) { if (UISettings::values.show_console) {