@@ -668,10 +668,9 @@ void emu_settings::EnhanceSpinBox(QSpinBox* spinbox, emu_settings_type type, con
668668 spinbox->setRange (min, max);
669669 spinbox->setValue (val);
670670
671- connect (spinbox, &QSpinBox::textChanged , this , [type, spinbox, this ](const QString& /* text */ )
671+ connect (spinbox, &QSpinBox::valueChanged , this , [type, this ](int value )
672672 {
673- if (!spinbox) return ;
674- SetSetting (type, spinbox->cleanText ().toStdString ());
673+ SetSetting (type, fmt::format (" %d" , value));
675674 });
676675
677676 connect (this , &emu_settings::RestoreDefaultsSignal, spinbox, [def, spinbox]()
@@ -724,10 +723,9 @@ void emu_settings::EnhanceDoubleSpinBox(QDoubleSpinBox* spinbox, emu_settings_ty
724723 spinbox->setRange (min, max);
725724 spinbox->setValue (val);
726725
727- connect (spinbox, &QDoubleSpinBox::textChanged , this , [type, spinbox, this ](const QString& /* text */ )
726+ connect (spinbox, &QDoubleSpinBox::valueChanged , this , [type, this ](double value )
728727 {
729- if (!spinbox) return ;
730- SetSetting (type, spinbox->cleanText ().toStdString ());
728+ SetSetting (type, fmt::format (" %f" , value));
731729 });
732730
733731 connect (this , &emu_settings::RestoreDefaultsSignal, spinbox, [def, spinbox]()
0 commit comments