mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-23 06:54:39 -04:00
Fix drag&drop not updating excluded locations (#6559)
This commit is contained in:
@@ -2536,6 +2536,7 @@ bool SoH_HandleConfigDrop(char* filePath) {
|
||||
->ClearBindings();
|
||||
|
||||
Rando::Settings::GetInstance()->UpdateAllOptions();
|
||||
SohGui::MarkRandomizerMenusDirty();
|
||||
gui->SaveConsoleVariablesNextFrame();
|
||||
ShipInit::Init("*");
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ static std::map<int32_t, const char*> languages = {
|
||||
};
|
||||
void UpdateMenuTricks();
|
||||
void UpdateMenuLocations();
|
||||
void MarkRandomizerMenusDirty();
|
||||
|
||||
class SohMenu : public Ship::Menu {
|
||||
public:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user