citra_qt/configuration: log on config dialog close
This commit is contained in:
parent
250cf584e3
commit
82aa45d9fa
|
@ -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;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Reference in New Issue