From 32aca270ecfc8ac6b7ce2da658479e3743ce8041 Mon Sep 17 00:00:00 2001 From: Desmis Date: Sat, 2 Dec 2023 08:24:42 +0100 Subject: [PATCH] LA exposure hide show sliders when expcomp different from zero (#6892) --- rtgui/locallabtools.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/rtgui/locallabtools.cc b/rtgui/locallabtools.cc index 8bf88724c..562cbf674 100644 --- a/rtgui/locallabtools.cc +++ b/rtgui/locallabtools.cc @@ -3056,6 +3056,23 @@ void LocallabExposure::read(const rtengine::procparams::ProcParams* pp, const Pa structexp->setValue(spot.structexp); blurexpde->setValue(spot.blurexpde); expcomp->setValue(spot.expcomp); + + if(expcomp->getValue()== 0.) { + black->hide(); + hlcompr->hide(); + hlcomprthresh->hide(); + shadex->hide(); + shcompr->hide(); + expchroma->hide(); + } else { + black->show(); + hlcompr->show(); + hlcomprthresh->show(); + shadex->show(); + shcompr->show(); + expchroma->show(); + } + black->setValue(spot.black); hlcompr->setValue(spot.hlcompr); hlcomprthresh->setValue(spot.hlcomprthresh); @@ -3353,6 +3370,22 @@ void LocallabExposure::adjusterChanged(Adjuster* a, double newval) } if (a == expcomp) { + if(expcomp->getValue()== 0.) { + black->hide(); + hlcompr->hide(); + hlcomprthresh->hide(); + shadex->hide(); + shcompr->hide(); + expchroma->hide(); + } else { + black->show(); + hlcompr->show(); + hlcomprthresh->show(); + shadex->show(); + shcompr->show(); + expchroma->show(); + } + if (listener) { listener->panelChanged(Evlocallabexpcomp, expcomp->getTextValue() + " (" + escapeHtmlChars(getSpotName()) + ")");