forked from 1b-agent/opencadstudio-upstream
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:
1 parent
578b8c5d64
commit
a584e772ba
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user