From 82aa45d9fa2fb6ac569fe2ac548f1c55aba4174d Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Tue, 17 Jul 2018 15:33:07 +0800 Subject: [PATCH] citra_qt/configuration: log on config dialog close --- src/citra_qt/configuration/config.h | 4 ++-- src/citra_qt/configuration/configure_dialog.cpp | 1 + src/citra_qt/main.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/configuration/config.h b/src/citra_qt/configuration/config.h index 2134508efa..2c740ea137 100644 --- a/src/citra_qt/configuration/config.h +++ b/src/citra_qt/configuration/config.h @@ -17,7 +17,7 @@ class Config { void ReadValues(); void SaveValues(); - void LogSetting(const QString& name, const QVariant& value); + static void LogSetting(const QString& name, const QVariant& value); public: Config(); @@ -25,7 +25,7 @@ public: void Reload(); void Save(); - void LogSettings(); + static void LogSettings(); static const std::array default_buttons; static const std::array, Settings::NativeAnalog::NumAnalogs> default_analogs; diff --git a/src/citra_qt/configuration/configure_dialog.cpp b/src/citra_qt/configuration/configure_dialog.cpp index b2aaeb0d68..5d3818c727 100644 --- a/src/citra_qt/configuration/configure_dialog.cpp +++ b/src/citra_qt/configuration/configure_dialog.cpp @@ -28,6 +28,7 @@ void ConfigureDialog::applyConfiguration() { ui->debugTab->applyConfiguration(); ui->webTab->applyConfiguration(); Settings::Apply(); + Config::LogSettings(); } void ConfigureDialog::onLanguageChanged(const QString& locale) { diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 1f31b60809..26ffe2ca1a 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -139,7 +139,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { SetupUIStrings(); LOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch, Common::g_scm_desc); - config->LogSettings(); + Config::LogSettings(); show();