From d68091ee9cb51de4a9cb7b89a59e900084200499 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Mon, 18 Nov 2024 23:13:48 +0100 Subject: [PATCH] fix another oversight --- src/frontend/qt_sdl/InterfaceSettingsDialog.cpp | 8 ++++---- src/frontend/qt_sdl/Window.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp b/src/frontend/qt_sdl/InterfaceSettingsDialog.cpp index bd02405e39..a2c1bd715a 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 596a0f5c31..eaeebf2704 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)