fix another oversight

This commit is contained in:
Arisotura 2024-11-18 23:13:48 +01:00
parent b491e99954
commit d68091ee9c
2 changed files with 6 additions and 6 deletions

View File

@ -35,9 +35,9 @@ InterfaceSettingsDialog::InterfaceSettingsDialog(QWidget* parent) : QDialog(pare
auto& cfg = emuInstance->getGlobalConfig(); 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->setEnabled(ui->cbMouseHide->isChecked());
ui->spinMouseHideSeconds->setValue(cfg.GetInt("MouseHideSeconds")); ui->spinMouseHideSeconds->setValue(cfg.GetInt("Mouse.HideSeconds"));
ui->cbPauseLostFocus->setChecked(cfg.GetBool("PauseLostFocus")); ui->cbPauseLostFocus->setChecked(cfg.GetBool("PauseLostFocus"));
ui->spinTargetFPS->setValue(cfg.GetDouble("TargetFPS")); ui->spinTargetFPS->setValue(cfg.GetDouble("TargetFPS"));
ui->spinFFW->setValue(cfg.GetDouble("FastForwardFPS")); ui->spinFFW->setValue(cfg.GetDouble("FastForwardFPS"));
@ -115,8 +115,8 @@ void InterfaceSettingsDialog::done(int r)
{ {
auto& cfg = emuInstance->getGlobalConfig(); auto& cfg = emuInstance->getGlobalConfig();
cfg.SetBool("MouseHide", ui->cbMouseHide->isChecked()); cfg.SetBool("Mouse.Hide", ui->cbMouseHide->isChecked());
cfg.SetInt("MouseHideSeconds", ui->spinMouseHideSeconds->value()); cfg.SetInt("Mouse.HideSeconds", ui->spinMouseHideSeconds->value());
cfg.SetBool("PauseLostFocus", ui->cbPauseLostFocus->isChecked()); cfg.SetBool("PauseLostFocus", ui->cbPauseLostFocus->isChecked());
double val = ui->spinTargetFPS->value(); double val = ui->spinTargetFPS->value();

View File

@ -1966,8 +1966,8 @@ void MainWindow::onUpdateInterfaceSettings()
emuInstance->targetFPS = globalCfg.GetDouble("TargetFPS"); emuInstance->targetFPS = globalCfg.GetDouble("TargetFPS");
emuInstance->fastForwardFPS = globalCfg.GetDouble("FastForwardFPS"); emuInstance->fastForwardFPS = globalCfg.GetDouble("FastForwardFPS");
emuInstance->slowmoFPS = globalCfg.GetDouble("SlowmoFPS"); emuInstance->slowmoFPS = globalCfg.GetDouble("SlowmoFPS");
panel->setMouseHide(globalCfg.GetBool("MouseHide"), panel->setMouseHide(globalCfg.GetBool("Mouse.Hide"),
globalCfg.GetInt("MouseHideSeconds")*1000); globalCfg.GetInt("Mouse.HideSeconds")*1000);
} }
void MainWindow::onInterfaceSettingsFinished(int res) void MainWindow::onInterfaceSettingsFinished(int res)