citra_qt/configuration: log on config dialog close

This commit is contained in:
zhupengfei 2018-07-17 15:33:07 +08:00
parent 250cf584e3
commit 82aa45d9fa
No known key found for this signature in database
GPG Key ID: 85B82A3E62174206
3 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Config {
void ReadValues(); void ReadValues();
void SaveValues(); void SaveValues();
void LogSetting(const QString& name, const QVariant& value); static void LogSetting(const QString& name, const QVariant& value);
public: public:
Config(); Config();
@ -25,7 +25,7 @@ public:
void Reload(); void Reload();
void Save(); void Save();
void LogSettings(); static void LogSettings();
static const std::array<int, Settings::NativeButton::NumButtons> default_buttons; static const std::array<int, Settings::NativeButton::NumButtons> default_buttons;
static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> default_analogs; static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> default_analogs;

View File

@ -28,6 +28,7 @@ void ConfigureDialog::applyConfiguration() {
ui->debugTab->applyConfiguration(); ui->debugTab->applyConfiguration();
ui->webTab->applyConfiguration(); ui->webTab->applyConfiguration();
Settings::Apply(); Settings::Apply();
Config::LogSettings();
} }
void ConfigureDialog::onLanguageChanged(const QString& locale) { void ConfigureDialog::onLanguageChanged(const QString& locale) {

View File

@ -139,7 +139,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
SetupUIStrings(); SetupUIStrings();
LOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch, LOG_INFO(Frontend, "Citra Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch,
Common::g_scm_desc); Common::g_scm_desc);
config->LogSettings(); Config::LogSettings();
show(); show();