mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-26 05:06:43 +00:00
citra_qt: only toggle console if the setting has been changed
This commit is contained in:
parent
f9a89ff410
commit
810b86f451
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue