Fix rando menu sliders so they update on JSON drop (#4912)

This commit is contained in:
Christopher Leggett 2025-01-19 20:06:54 -05:00 committed by GitHub
parent 526aad59d5
commit 8244d63719
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2432,6 +2432,10 @@ void SoH_ProcessDroppedFiles(std::string filePath) {
} }
} }
auto randoCtx = Rando::Context::GetInstance();
randoCtx->GetSettings()->UpdateOptionProperties();
randoCtx->GetSettings()->SetAllFromCVar();
auto gui = Ship::Context::GetInstance()->GetWindow()->GetGui(); auto gui = Ship::Context::GetInstance()->GetWindow()->GetGui();
gui->GetGuiWindow("Console")->Hide(); gui->GetGuiWindow("Console")->Hide();
gui->GetGuiWindow("Actor Viewer")->Hide(); gui->GetGuiWindow("Actor Viewer")->Hide();