From 7be59770a42e875751ac5e20478fff732e8edd16 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Fri, 30 Oct 2026 00:50:31 +0100 Subject: [PATCH] Use persisted animation preference for localization test setup --- crates/ui-egui/tests/it/camera_raw_localization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/it/camera_raw_localization.rs b/crates/ui-egui/tests/it/camera_raw_localization.rs index 0a00598e6b..eedaa6be93 100644 --- a/crates/ui-egui/tests/it/camera_raw_localization.rs +++ b/crates/ui-egui/tests/it/camera_raw_localization.rs @@ -29,7 +29,7 @@ fn all_registered_languages_render_camera_raw_and_switch_without_resetting_view_ let ctx = h.ctx.clone(); h.state_mut().set_theme(&ctx, ThemeKind::Pro); // Labels and retained state are under test, not the collapse animation. - h.ctx.style_mut(|style| style.animation_time = 0.0); + h.state_mut().session.prefs.edit(|p| p.interface.enable_animations = false); h.state_mut().session.prefs.edit(|p| p.interface.language = lang.code().into()); h.run_steps(4); let tr = |s| i18n::tr_ctx(lang, "cameraRaw", s);