fix another oversight
This commit is contained in:
parent
b491e99954
commit
d68091ee9c
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue