From 8244d63719a2c196885b1df6ef3e3e10b50a90cb Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Sun, 19 Jan 2025 20:06:54 -0500 Subject: [PATCH] Fix rando menu sliders so they update on JSON drop (#4912) --- soh/soh/OTRGlobals.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 3cf63f18b..1519bfe48 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -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(); gui->GetGuiWindow("Console")->Hide(); gui->GetGuiWindow("Actor Viewer")->Hide();