forked from 1b-agent/opencadstudio-upstream
feat(manage): surface About in the ribbon — Application group (#302)
The ABOUT command and its version-reporting window already exist, but the ToolDef sat dead-code in the draw module with no ribbon entry, so the only way in was typing ABOUT. Move it to the manage module and give it an Application group on the Manage tab, as a discoverable fallback for version diagnostics. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
0964e97cfa
commit
8693857cfb
3 files changed
+6
-2
No files matched your search
@@ -1,6 +1,5 @@
|
||||
// Draw module — Draw, Modify, Annotation and Layer tools.
|
||||
|
||||
mod about;
|
||||
mod changelog;
|
||||
pub mod clipboard;
|
||||
pub mod defaults;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "ABOUT",
|
||||
@@ -1,5 +1,6 @@
|
||||
// Manage module — customization and drawing cleanup tools.
|
||||
|
||||
mod about;
|
||||
mod audit;
|
||||
mod cui_export;
|
||||
mod cui_import;
|
||||
@@ -75,6 +76,11 @@ impl CadModule for ManageModule {
|
||||
RibbonItem::Tool(audit::tool()),
|
||||
],
|
||||
},
|
||||
// ── Application ───────────────────────────────────────────────────
|
||||
RibbonGroup {
|
||||
title: "Application",
|
||||
tools: vec![RibbonItem::LargeTool(about::tool())],
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user