From 4be2f12914ef69af68f0f1926bbb9cf1226d71bc Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Mon, 2 Jul 2018 19:39:13 +0300 Subject: [PATCH] log/console: no need to test first call Just let `console_shown` be initialized to the default status (console isn't shown on startup) --- src/citra_qt/debugger/console.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/citra_qt/debugger/console.cpp b/src/citra_qt/debugger/console.cpp index f3d126f355..e741f45e80 100644 --- a/src/citra_qt/debugger/console.cpp +++ b/src/citra_qt/debugger/console.cpp @@ -14,16 +14,13 @@ 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; - } + static bool console_shown = false; + if (console_shown == UISettings::values.show_console) { + return; } else { - first_call = false; + console_shown = UISettings::values.show_console; } + #ifdef _WIN32 FILE* temp; if (UISettings::values.show_console) {