LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
LR-IMP-ADD-DIALOG: settle Copy layout before locating Tags
sanyamsingh00141e95fa78e99
diff --git a/crates/ui-egui/src/headless.rs b/crates/ui-egui/src/headless.rsindex e6929269f..a1e85ce84 100644--- a/crates/ui-egui/src/headless.rs+++ b/crates/ui-egui/src/headless.rs@@ -2594,6 +2594,8 @@ mod tests {if let Some(crate::state::Dialog::Import { opts }) = &mut h.app.ui.dialog {opts.rename = "Trip-_x".into();}+ // Paint the edited template before locating the Tags button in the resized dialog.+ assert!(h.settle(SETTLE), "Copy dialog layout should settle before locating Tags");// the cursor sits after "Trip-"let id = egui::Id::new("import-rename");let mut st = egui::text_edit::TextEditState::default();