Fix main: a test built Applying without the new seen field (#4001)
#3609 added Applying::seen; dialogs_sketch_tests' apply_keeps_the_panel_open_after_asynchronous_evaluation still built the struct without it, so ui-egui's tests stopped compiling on main. The test stands for a job that is already being shown, so seen is true (the behaviour it had before). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -195,7 +195,7 @@ fn apply_keeps_the_panel_open_after_asynchronous_evaluation() {
|
||||
d.repeat_after_apply = true;
|
||||
h.app.dialog = Some(d);
|
||||
let (finish, done) = std::sync::mpsc::channel();
|
||||
h.app.applying = Some(Applying { done, started: crate::now_ms(), cmds });
|
||||
h.app.applying = Some(Applying { done, started: crate::now_ms(), cmds, seen: true });
|
||||
let undo = h.app.session.undo.len();
|
||||
h.frames(2);
|
||||
assert_eq!(h.app.session.undo.len(), undo);
|
||||
|
||||
Reference in New Issue
Block a user