From 810b86f451697b6069688bf54514a8c6226ba4cd Mon Sep 17 00:00:00 2001 From: wwylele Date: Sat, 30 Jun 2018 13:07:30 +0300 Subject: [PATCH] citra_qt: only toggle console if the setting has been changed --- src/citra_qt/debugger/console.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/citra_qt/debugger/console.cpp b/src/citra_qt/debugger/console.cpp index f405f8172..f3d126f35 100644 --- a/src/citra_qt/debugger/console.cpp +++ b/src/citra_qt/debugger/console.cpp @@ -14,6 +14,16 @@ namespace Debugger { void ToggleConsole() { + static bool first_call = true, console_shown = true; + if (!first_call) { + if (console_shown == UISettings::values.show_console) { + return; + } else { + console_shown = UISettings::values.show_console; + } + } else { + first_call = false; + } #ifdef _WIN32 FILE* temp; if (UISettings::values.show_console) {