From b0ef53e986f91ca250840baddfb62063c6f957ee Mon Sep 17 00:00:00 2001 From: eliets2 <287273517+eliets2@users.noreply.github.com> Date: Wed, 28 Oct 2026 06:49:31 +0200 Subject: [PATCH] Tighten the change after a final review --- crates/develop/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/develop/src/lib.rs b/crates/develop/src/lib.rs index acdf4836c..72fd5133c 100644 --- a/crates/develop/src/lib.rs +++ b/crates/develop/src/lib.rs @@ -161,9 +161,7 @@ impl DevelopSettings { // the creative profile is not a control: the chosen look goes back to the default one, // and so does the camera's own local tone mapping Section::Profile => { - let d = Profile::default(); - self.profile.id = d.id; - self.profile.camera_local_tone = d.camera_local_tone; + self.profile = Profile::default(); } _ => {} } @@ -331,7 +329,7 @@ mod tests { s.profile.id = "lc.muted.matte-soft".into(); s.profile.amount = 40.0; s.reset_section(Section::Profile); - assert_eq!(s.profile.id, "lc.color", "the creative profile survives a Profile reset"); + assert_eq!(s.profile.id, "lc.color", "the creative profile is reset to the default one"); assert_eq!(s.profile.amount, 100.0); }