Merge fix/reset-preferences-interface-settings into fix/prefs-dialog-keeps-outside-changes

This commit is contained in:
dotCooCoo committed 2026-11-25 19:48:41 -08:00
commit 79ad1cc77e
1 file changed
+2 -3
+2 -3
View File
@@ -581,9 +581,8 @@ fn prefs_reset_outside_run_resets_the_ui_only_rows_in_the_next_frame() {
let default = ui_rows(&a);
set_ui_rows(&mut a, (!default.0, !default.1, !default.2));
a.session.execute("prefs.reset", &json!({})).unwrap();
let ctx = crate::testing::ui_context();
let mut out = ctx.run_ui(egui::RawInput::default(), |ui| a.tick(ui.ctx()));
out.textures_delta.clear();
let ctx = a.ui_ctx.clone().expect("a window context");
crate::testing::app_frame(&mut a, &ctx, egui::RawInput::default());
assert_eq!(ui_rows(&a), default);
// Before the next command switches workspaces: the workspace left keeps the reset value.