Format the Export submenu separator test

This commit is contained in:
RickiNano committed 2026-11-24 17:41:14 +01:00
1 parent 522e4fa3ac
commit 99dde7aa68
1 file changed
+1 -5
@@ -5,11 +5,7 @@ use super::*;
/// The File › Export entries as the menu bar shows them, `---` for a separator.
fn export_ids() -> Vec<String> {
let app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());
menu_rows(&app)
.into_iter()
.filter(|r| r.path == ["File", "Export"])
.map(|r| if r.label == "---" { "---".to_string() } else { r.command.id })
.collect()
menu_rows(&app).into_iter().filter(|r| r.path == ["File", "Export"]).map(|r| if r.label == "---" { "---".to_string() } else { r.command.id }).collect()
}
#[test]