Enhacment presets no longer reimport randomiser settings (#4561)

* Enhacment presets no longer reimport randomiser settings

* make the change only apply to the Randomiser button instead
This commit is contained in:
Pepper0ni 2024-11-19 23:22:54 +00:00 committed by GitHub
parent 53b72a2507
commit 3e313bd063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,9 @@ void DrawPresetSelector(PresetType presetTypeId) {
applyPreset(selectedPresetDef.entries); applyPreset(selectedPresetDef.entries);
} }
Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick(); Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick();
Rando::Context::GetInstance()->GetSettings()->ReloadOptions(); if (presetTypeId == PRESET_TYPE_RANDOMIZER){
Rando::Context::GetInstance()->GetSettings()->ReloadOptions();
}
} }
ImGui::PopStyleVar(1); ImGui::PopStyleVar(1);
} }