Skip to content

Commit

Permalink
Fix rando menu sliders so they update on JSON drop (HarbourMasters#4912)
Browse files Browse the repository at this point in the history
  • Loading branch information
leggettc18 authored Jan 20, 2025
1 parent 526aad5 commit 8244d63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8244d63

Please sign in to comment.