Files
OneCAD-Draft/src/modules/draw/donate.rs
T
Hakan SevenandClaude Opus 4.8 3666c7fa69 refactor(modules): rename home module to draw, restore first-tab order
The Home tab was already titled "Draw"; rename the module to match:
folder modules/home → modules/draw, HomeModule → DrawModule, id "home"
→ "draw". The inner draw/ command folder is kept (modules::draw::draw).

Update build.rs PRIORITY ("home" → "draw") so the tab returns to the
front of the ribbon; registry.rs regenerates accordingly.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-16 11:49:14 +03:00

14 lines
467 B
Rust

use crate::modules::{IconKind, ModuleEvent, ToolDef};
// Kept for the command-line route ("DONATE" cmd) and possible future ribbon
// re-introduction; currently the Start tab invokes the same command directly.
#[allow(dead_code)]
pub fn tool() -> ToolDef {
ToolDef {
id: "DONATE",
label: "Donate",
icon: IconKind::Svg(include_bytes!("../../../assets/icons/donate.svg")),
event: ModuleEvent::Command("DONATE".to_string()),
}
}