fix(draw): remove cross-tab extension tools

This commit is contained in:
ramox81 committed 2026-09-14 22:00:59 +03:00
1 parent fc1788df65
commit 4ce42f9cdb
1 file changed
+1 -17
+1 -17
View File
@@ -73,12 +73,6 @@ const TOOLS: &[Tool] = &[
icon: include_bytes!("../../../assets/icons/region.svg"),
options: &[],
},
Tool {
command: "WIPEOUT",
label: "Wipeout",
icon: include_bytes!("../../../assets/icons/wipeout.svg"),
options: &[],
},
Tool {
command: "BOUNDARY",
label: "Boundary",
@@ -107,16 +101,6 @@ const TOOLS: &[Tool] = &[
("DDPTYPE", "Point Style"),
],
},
Tool {
command: "REVCLOUD",
label: "Revision Cloud",
icon: include_bytes!("../../../assets/icons/revcloud.svg"),
options: &[
("REVCLOUD_RECTANGULAR", "Rectangular"),
("REVCLOUD_POLYGONAL", "Polygonal"),
("REVCLOUD_FREEHAND", "Freehand"),
],
},
];
#[derive(Clone, Copy)]
@@ -305,7 +289,7 @@ mod tests {
#[test]
fn extension_submenus_resolve_to_their_parent_panel() {
assert_eq!(parent_panel("REVCLOUD"), Some(PANEL_ID));
assert_eq!(parent_panel("MULTIPOINT"), Some(PANEL_ID));
assert_eq!(parent_panel("DRAWORDER_FRONT"), Some("modify_extension"));
assert_eq!(parent_panel("unknown"), None);
}