Fix drag&drop not updating excluded locations (#6559)

This commit is contained in:
Philip Dubé
2026-04-23 22:48:12 +00:00
committed by GitHub
parent 806398a65b
commit ccfa31a245
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -2536,6 +2536,7 @@ bool SoH_HandleConfigDrop(char* filePath) {
->ClearBindings();
Rando::Settings::GetInstance()->UpdateAllOptions();
SohGui::MarkRandomizerMenusDirty();
gui->SaveConsoleVariablesNextFrame();
ShipInit::Init("*");
+1
View File
@@ -28,6 +28,7 @@ static std::map<int32_t, const char*> languages = {
};
void UpdateMenuTricks();
void UpdateMenuLocations();
void MarkRandomizerMenusDirty();
class SohMenu : public Ship::Menu {
public:
+5
View File
@@ -181,6 +181,11 @@ void DrawLocationsMenu(WidgetInfo& info) {
ImGui::EndDisabled();
}
void MarkRandomizerMenusDirty() {
locationsDirty = true;
tricksDirty = true;
}
void UpdateMenuLocations() {
RandomizerCheckObjects::UpdateImGuiVisibility();
// todo: this efficiently when we build out cvar array support