cad-editor/src/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 89fcb21b46 fix(layer): propagate LAY* command changes to panel + dropdown (#39)
LAYOFF / LAYFRZ / LAYLCK / LAYON / LAYTHW / LAYULK / LAYISO /
LAYUNISO mutated the document's layer table (\`turn_off\` /
\`freeze\` / \`lock\` / …) and then called \`sync_ribbon_layers\`,
which feeds the ribbon dropdown from \`self.tabs[i].layers.layers\`
— the \`LayerPanel\` cache. That cache was never refreshed from
the document for these commands, so the dropdown stayed wrong and
the Layers Properties Manager kept showing the old visibility /
lock / freeze icons.

Add \`OpenCADStudio::refresh_layer_panel\` that runs
\`LayerPanel::sync_with_viewports\` from the live document before
calling \`sync_ribbon_layers\`. Replace every direct
\`sync_ribbon_layers\` in \`commands.rs\` (all of them sit inside
LAY* arms) with the new helper.

Closes #39
2026-05-29 01:30:02 +03:00
..
cmd_result.rs feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
commands.rs fix(layer): propagate LAY* command changes to panel + dropdown (#39) 2026-05-29 01:30:02 +03:00
document.rs fix(dyn-input): support cartesian coords via "," (#35) 2026-05-29 00:46:18 +03:00
helpers.rs feat(input): relative coordinate entry (@/#) and DYN default — #26 2026-05-27 11:40:28 +03:00
history.rs fix(viewport): adapt entity colours to visible bg 2026-05-28 18:28:18 +03:00
layers.rs fix(layer): propagate LAY* command changes to panel + dropdown (#39) 2026-05-29 01:30:02 +03:00
mod.rs fix(dyn-input): re-sync fields immediately after point commits (#35) 2026-05-29 00:57:37 +03:00
properties.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
update.rs fix(ribbon): clear blue tool state when its popup window closes (#40) 2026-05-29 01:23:25 +03:00
view.rs fix(dyn-input): support cartesian coords via "," (#35) 2026-05-29 00:46:18 +03:00