Simplify Modify ribbon extensions

This commit is contained in:
Hakan Seven committed 2026-09-11 10:06:51 +03:00
1 parent 13600996d3
commit 5f3edf45ef
21 files changed
+248 -117

No files matched your search

+11
View File
@@ -1600,6 +1600,17 @@ mod tests {
assert!(!is_active_tool("BLOCKPALETTE", &None, &off));
}
#[test]
fn escape_returns_from_an_extension_submenu_then_closes_the_panel() {
let mut ribbon = Ribbon::default();
ribbon.open_dropdown = Some("DRAWORDER_FRONT".to_string());
assert!(ribbon.escape_extension());
assert_eq!(ribbon.open_dropdown.as_deref(), Some("modify_extension"));
assert!(ribbon.escape_extension());
assert_eq!(ribbon.open_dropdown, None);
}
/// Reproducible element-construction benchmark for the ribbon view. Run with:
/// `cargo test --lib --release -- --ignored --nocapture bench_ribbon_view_construction`
///