Activate Locallab tools by default for newly added ones

This commit is contained in:
Pandagrapher 2020-05-27 10:09:48 +02:00
parent a2c6715a0e
commit 96891cf8cd
2 changed files with 6 additions and 1 deletions

View File

@ -662,7 +662,7 @@ int refreshmap[rtengine::NUMOFEVENTS] = {
LUMINANCECURVE, // EvLocallabsensihs LUMINANCECURVE, // EvLocallabsensihs
LUMINANCECURVE, // Evlocallabradmaskcol LUMINANCECURVE, // Evlocallabradmaskcol
LUMINANCECURVE, // Evlocallabradmaskexp LUMINANCECURVE, // Evlocallabradmaskexp
M_VOID, // EvlocallabToolAdded LUMINANCECURVE, // EvlocallabToolAdded
LUMINANCECURVE, // EvlocallabCCmaskSHshape LUMINANCECURVE, // EvlocallabCCmaskSHshape
LUMINANCECURVE, // EvlocallabLLmaskSHshape LUMINANCECURVE, // EvlocallabLLmaskSHshape
LUMINANCECURVE, // EvlocallabHHmaskSHshape LUMINANCECURVE, // EvlocallabHHmaskSHshape

View File

@ -186,6 +186,11 @@ void LocallabTool::addLocallabTool(bool raiseEvent)
// Raise event if required // Raise event if required
if (raiseEvent) { // Note: Event is only raised when a tool is added by user if (raiseEvent) { // Note: Event is only raised when a tool is added by user
// By default, activate newly added tool
enaExpConn.block(true);
exp->setEnabled(true);
enaExpConn.block(false);
if (needMode) { if (needMode) {
// Set complexity mode according to chosen default one // Set complexity mode according to chosen default one
complexityConn.block(true); complexityConn.block(true);