Skip to content

Comments

widgets: collapsible-container: avoid shallow construction#2237

Merged
ES-Alexander merged 1 commit intobluerobotics:masterfrom
ES-Alexander:fix-collapsible-container-shallow-construction
Nov 17, 2025
Merged

widgets: collapsible-container: avoid shallow construction#2237
ES-Alexander merged 1 commit intobluerobotics:masterfrom
ES-Alexander:fix-collapsible-container-shallow-construction

Conversation

@ES-Alexander
Copy link
Contributor

@ES-Alexander ES-Alexander commented Nov 17, 2025

Fixes #1527. This is just intended to fix the problem of unintentionally linked container widgets - it unfortunately doesn't follow the suggested solution of allowing for intentionally linked ones (covered by #1690).

By deeply copying the default container elements, there is no longer cross-pollution of references to them between newly created widget containers. Ideally the defaults shouldn't be set in a special case in the widget manager, but I decided to keep this PR simple and make the smallest fixing change I could, especially given implementing #2114 will likely rework a bunch of the relevant code anyway.

Before:

Screen.Recording.2025-11-17.at.7.34.23.pm.mov

After:

Screen.Recording.2025-11-17.at.7.36.30.pm.mov

@ES-Alexander ES-Alexander merged commit aece384 into bluerobotics:master Nov 17, 2025
22 of 23 checks passed
@ES-Alexander ES-Alexander deleted the fix-collapsible-container-shallow-construction branch November 17, 2025 16:57
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.

bug: Collapsible Containers start linked to the previous one

2 participants