mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
f0f46296f2
## Link to GitHub Issue, if one exists n/a ## Description of change For buttons and lights, it's possible to have multiple alternatives. When you create alternatives and then clear then, the config files continue to have stale entries. This is because alternatives are stored in a vector and elements are never deleted when unbound; they get written out to the XML on modification. These stale XML entries live forever, and get loaded on next startup of spice. This PR fixes that by deleting stale entries - basically, XML nodes will be kept only until the last valid node (properly bound button or light), trimming the trailing invalid entries. ## Testing Manual testing, validating XML.