forked from 1b-agent/opencadstudio-upstream
fix(draw): remove cross-tab extension tools
This commit is contained in:
1 parent
fc1788df65
commit
4ce42f9cdb
1 file changed
+1
-17
@@ -73,12 +73,6 @@ const TOOLS: &[Tool] = &[
|
|||||||
icon: include_bytes!("../../../assets/icons/region.svg"),
|
icon: include_bytes!("../../../assets/icons/region.svg"),
|
||||||
options: &[],
|
options: &[],
|
||||||
},
|
},
|
||||||
Tool {
|
|
||||||
command: "WIPEOUT",
|
|
||||||
label: "Wipeout",
|
|
||||||
icon: include_bytes!("../../../assets/icons/wipeout.svg"),
|
|
||||||
options: &[],
|
|
||||||
},
|
|
||||||
Tool {
|
Tool {
|
||||||
command: "BOUNDARY",
|
command: "BOUNDARY",
|
||||||
label: "Boundary",
|
label: "Boundary",
|
||||||
@@ -107,16 +101,6 @@ const TOOLS: &[Tool] = &[
|
|||||||
("DDPTYPE", "Point Style"),
|
("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)]
|
#[derive(Clone, Copy)]
|
||||||
@@ -305,7 +289,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn extension_submenus_resolve_to_their_parent_panel() {
|
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("DRAWORDER_FRONT"), Some("modify_extension"));
|
||||||
assert_eq!(parent_panel("unknown"), None);
|
assert_eq!(parent_panel("unknown"), None);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user