fix(textstyle): open Text Style manager from the ribbon Manage button

The bare STYLE command (sent by the Annotate-tab text-style combo's
"Manage…" button) fell into the LIST arm and only printed the style
list instead of opening the manager. Route no-arg STYLE / TEXTSTYLE to
the dialog, matching DIMSTYLE / TABLESTYLE / MLEADERSTYLE.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-06-03 20:52:11 +03:00
1 parent 578b8c5d64
commit a584e772ba
1 file changed
+2 -2
+2 -2
View File
@@ -4147,10 +4147,10 @@ impl OpenCADStudio {
let parts: Vec<&str> = rest.splitn(3, ' ').collect();
let sub = parts.get(0).map(|s| s.to_uppercase()).unwrap_or_default();
match sub.as_str() {
"DIALOG" | "UI" => {
"" | "DIALOG" | "UI" => {
return Task::done(Message::TextStyleDialogOpen);
}
"" | "LIST" | "?" => {
"LIST" | "?" => {
let styles: Vec<String> = self.tabs[i]
.scene
.document