forked from 1b-agent/opencadstudio-upstream
The Annotate style dropdowns (text / dimension / multileader / table) and the layer dropdown were hard-coded to "Standard" / "0" and never synced from the opened document, so they showed placeholder values even with no file open and stale values after closing one. - Start the ribbon's style and layer lists empty instead of with a placeholder entry. - Sync the style dropdowns from the document on file open and on tab new/switch/close (the layer sync already ran there). - Guard sync_ribbon_layers / sync_ribbon_styles / sync_ribbon_from_selection for the Start (welcome) tab so all three dropdowns stay empty there. - When a style family is absent (e.g. no table/multileader styles), fall back to empty rather than a non-existent "Standard". Co-Authored-By: Claude Opus 4.8 <[email protected]>