Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Use the actual pixel grid Show preference in regression

jonathnwxhce0ba035728d
diff --git a/crates/ui-egui/src/view_cmds/tests.rs b/crates/ui-egui/src/view_cmds/tests.rs
index 27f05de54..9543fb7dd 100644
--- a/crates/ui-egui/src/view_cmds/tests.rs
+++ b/crates/ui-egui/src/view_cmds/tests.rs
@@ -551,12 +551,12 @@ fn failed_selection_and_unrelated_edits_keep_extras_hidden() {
fn new_selection_preserves_individual_show_preferences() {
let (mut app, ctx) = app_with(1);
app.ui.view.show.selection_edges = false;
- app.ui.view.show.grid = false;
+ app.ui.view.show.pixel_grid = false;
menu(&mut app, &ctx, "view.extras", json!({})).unwrap();
app.run("select.rect", json!({"x": 10, "y": 10, "width": 20, "height": 20})).unwrap();
assert!(app.ui.view.extras);
assert!(!app.ui.view.show.selection_edges);
- assert!(!app.ui.view.show.grid);
+ assert!(!app.ui.view.show.pixel_grid);
}
#[test]