Add collapsible Properties-panel sections

This commit is contained in:
Marcel committed 2026-09-08 20:33:24 +02:00
1 parent cadd506f76
commit 7a87e08a02
5 files changed
+61 -4

No files matched your search

+14
View File
@@ -5104,6 +5104,20 @@ impl OpenCADStudio {
Task::none()
}
Message::PropSectionToggle(title) => {
let sections = &mut self.collapsed_property_sections;
if !sections.remove(&title) {
sections.insert(title);
}
// Keep already-built panels in other open documents in sync,
// rather than waiting for each one to rebuild on selection.
let sections = self.collapsed_property_sections.clone();
for tab in &mut self.tabs {
tab.properties.collapsed_sections = sections.clone();
}
Task::none()
}
Message::PropEditChoiceToggle => {
let panel = &mut self.tabs[self.active_tab].properties;
panel.edit_choice_open = !panel.edit_choice_open;
View File
Whitespace-only changes.