mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Format the Export submenu separator test
This commit is contained in:
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]
|
||||
|
||||
Reference in new issue
Block a user