Skip to content

Fix saving inactive config sets against the active set's placeholders - #10612

Open
zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix/10589-config-save-inactive-set
Open

zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix/10589-config-save-inactive-set

Conversation

@zubSero

@zubSero zubSero commented Nov 27, 2026

Copy link
Copy Markdown

Fixes #10589.

Description of the problem being solved:

When a build is saved, the entered values of every config set were compared with the defaults of the set that happens to be active. A value entered in another set was left out of the file when it was equal to the active set's placeholder, and was gone after reopening the build.

Each set is now compared with its own placeholders.

Loading had a smaller problem in the same area: a placeholder with a text value was loaded as if it had been entered. It is loaded as a placeholder now.

This changes the same line in ConfigTab:Save as #10354, so whichever is merged second will need a small rebase.

This was part of #10585. I split it out so it can be reviewed on its own.

Steps taken to verify a working solution:

  • Added a test that saves with set A active while set B has an entered value equal to A's placeholder, and a test for loading a text placeholder. They fail on dev.

Saving compared every set's inputs with defaults resolved from the active set, so an input of another set was dropped when it equalled the active set's placeholder. A saved string placeholder was also loaded as an input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving an inactive configuration set can drop values that match another set's placeholder

1 participant