AI Defringe: review fixes (model folder, accepted terms, memo, publishing, cancellation, Auto Sync, thumbnails, guards)

This commit is contained in:
Bruno Alumn committed 2026-11-19 19:01:14 +01:00
1 parent 0620e00b8c
commit 263d8c4fff
15 files changed
+490 -95

No files matched your search

+13
View File
@@ -192,6 +192,7 @@ impl DevelopSettings {
self.curve = d;
}
Section::Color => self.wb.mode = WbMode::AsShot,
Section::Optics => self.optics.ai_defringe_on = None,
Section::Detail => {
self.enhance.denoise_on = None;
// not a slider: reset like them, to the general default (off)
@@ -479,6 +480,18 @@ mod tests {
assert!(!s.profile.camera_local_tone);
}
#[test]
fn resetting_optics_clears_the_ai_defringe_switch() {
// switched off by hand, then Optics reset: a later Amount turns it on, as on a fresh photo
let mut s = DevelopSettings::default();
s.optics.ai_defringe = 60.0;
s.optics.ai_defringe_on = Some(false);
s.reset_section(Section::Optics);
assert_eq!((s.optics.ai_defringe, s.optics.ai_defringe_on), (0.0, None));
s.optics.ai_defringe = 30.0;
assert!(s.optics.ai_defringe_enabled());
}
#[test]
fn section_toggles() {
let mut s = DevelopSettings::default();