Leave Start Randomizer disabled after generation fails (#7157)

This commit is contained in:
Philip Dubé
2026-09-07 23:59:18 +00:00
committed by GitHub
parent 86a55cb1fb
commit 371ef6f841
2 changed files with 1 additions and 1 deletions
@@ -16,6 +16,7 @@ bool GenerateRandomizer(std::set<RandomizerCheck> excludedLocations, std::set<Ra
const auto ctx = Rando::Context::GetInstance();
ResetPerformanceTimers();
StartPerformanceTimer(PT_WHOLE_SEED);
ctx->SetSpoilerLoaded(false);
// if a blank seed was entered, make a random one
if (seedInput.empty()) {
-1
View File
@@ -717,7 +717,6 @@ void SohMenu::AddMenuRandomizer() {
});
AddWidget(path, "Generate Randomizer", WIDGET_BUTTON)
.Callback([](WidgetInfo& info) {
Rando::Context::GetInstance()->SetSpoilerLoaded(false);
GenerateRandomizer(CVarGetInteger(CVAR_RANDOMIZER_SETTING("ManualSeedEntry"), 0) ? seedString : "");
})
.PreFunc([](WidgetInfo& info) {