diff --git a/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp b/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp index bd02405e..a2c1bd71 100644 --- a/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp +++ b/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp @@ -35,9 +35,9 @@ InterfaceSettingsDialog::InterfaceSettingsDialog(QWidget* parent) : QDialog(pare auto& cfg = emuInstance->getGlobalConfig(); - ui->cbMouseHide->setChecked(cfg.GetBool("MouseHide")); + ui->cbMouseHide->setChecked(cfg.GetBool("Mouse.Hide")); ui->spinMouseHideSeconds->setEnabled(ui->cbMouseHide->isChecked()); - ui->spinMouseHideSeconds->setValue(cfg.GetInt("MouseHideSeconds")); + ui->spinMouseHideSeconds->setValue(cfg.GetInt("Mouse.HideSeconds")); ui->cbPauseLostFocus->setChecked(cfg.GetBool("PauseLostFocus")); ui->spinTargetFPS->setValue(cfg.GetDouble("TargetFPS")); ui->spinFFW->setValue(cfg.GetDouble("FastForwardFPS")); @@ -115,8 +115,8 @@ void InterfaceSettingsDialog::done(int r) { auto& cfg = emuInstance->getGlobalConfig(); - cfg.SetBool("MouseHide", ui->cbMouseHide->isChecked()); - cfg.SetInt("MouseHideSeconds", ui->spinMouseHideSeconds->value()); + cfg.SetBool("Mouse.Hide", ui->cbMouseHide->isChecked()); + cfg.SetInt("Mouse.HideSeconds", ui->spinMouseHideSeconds->value()); cfg.SetBool("PauseLostFocus", ui->cbPauseLostFocus->isChecked()); double val = ui->spinTargetFPS->value(); diff --git a/src/frontend/qt_sdl/Window.cpp b/src/frontend/qt_sdl/Window.cpp index 596a0f5c..eaeebf27 100644 --- a/src/frontend/qt_sdl/Window.cpp +++ b/src/frontend/qt_sdl/Window.cpp @@ -1966,8 +1966,8 @@ void MainWindow::onUpdateInterfaceSettings() emuInstance->targetFPS = globalCfg.GetDouble("TargetFPS"); emuInstance->fastForwardFPS = globalCfg.GetDouble("FastForwardFPS"); emuInstance->slowmoFPS = globalCfg.GetDouble("SlowmoFPS"); - panel->setMouseHide(globalCfg.GetBool("MouseHide"), - globalCfg.GetInt("MouseHideSeconds")*1000); + panel->setMouseHide(globalCfg.GetBool("Mouse.Hide"), + globalCfg.GetInt("Mouse.HideSeconds")*1000); } void MainWindow::onInterfaceSettingsFinished(int res)