mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Preventing max quicksaves from being saved to settings.cfg if it is unchanged.
This commit is contained in:
parent
839196e4fa
commit
6c3ac834c4
@ -73,7 +73,10 @@ void Launcher::AdvancedPage::saveSettings()
|
||||
|
||||
// Saves Settings
|
||||
saveSettingBool(timePlayedCheckbox, "timeplayed", "Saves");
|
||||
mEngineSettings.setInt("max quicksaves", "Saves", maximumQuicksavesComboBox->value());
|
||||
int maximumQuicksaves = maximumQuicksavesComboBox->value();
|
||||
if (maximumQuicksaves != mEngineSettings.getInt("max quicksaves", "Saves")) {
|
||||
mEngineSettings.setInt("max quicksaves", "Saves", maximumQuicksaves);
|
||||
}
|
||||
|
||||
// Other Settings
|
||||
std::string screenshotFormatString = screenshotFormatComboBox->currentText().toLower().toStdString();
|
||||
|
Loading…
Reference in New Issue
Block a user