mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
Use persisted animation preference for localization test setup
This commit is contained in:
1 parent
c8c8fc7821
commit
7be59770a4
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user