Color management: removing a profile redraws only when the canvas changes

color.removeProfile gave every open document a new revision for any
removed profile. It now redraws when the removed profile was an assigned
profile in use, which the working space replaces, or the CMYK profile
View → Proof Setup targets. Removing any other profile leaves the
revisions unchanged, which loading_or_removing_the_proof_profile_redraws
checks.
This commit is contained in:
dotCooCoo
2026-11-12 13:42:04 -08:00
parent f02a572c6a
commit 127229d188
+4 -1
View File
@@ -260,7 +260,10 @@ fn remove_profile(s: &mut Session, p: &Value) -> Result<Value> {
if active.rgb == name || active.cmyk == name {
use_front_profiles(s);
}
touch_all(s);
// The CMYK profile View → Proof Setup targets: redraw.
if proof_targets(&info.name) {
touch_all(s);
}
Ok(json!({"removed": info.name}))
}