* Change management viewing temperature and tint * Enable autotemp wbcamchanged and hide history message * Change wbcamchnaged as proposed by kaesa
This commit is contained in:
@@ -1880,18 +1880,36 @@ void ColorAppearance::adapCamChanged (double cadap)
|
||||
}
|
||||
|
||||
|
||||
void ColorAppearance::wbCamChanged (double temp, double tin)
|
||||
void ColorAppearance::wbCamChanged (double temp, double tin, bool autotemp)
|
||||
{//reactivate this function
|
||||
|
||||
idle_register.add(
|
||||
[this, temp, tin]() -> bool
|
||||
[this, temp, tin, autotemp]() -> bool
|
||||
|
||||
{
|
||||
if (temp != tempout->getValue()) {
|
||||
disableListener();
|
||||
tempout->setValue(temp);
|
||||
enableListener();
|
||||
listener->panelChanged (EvCATtempout, tempout->getTextValue());
|
||||
}
|
||||
if (tin != greenout->getValue()) {
|
||||
disableListener();
|
||||
greenout->setValue(tin);
|
||||
enableListener();
|
||||
listener->panelChanged (EvCATgreenout, greenout->getTextValue());
|
||||
}
|
||||
/*
|
||||
disableListener();
|
||||
tempout->setValue(temp);
|
||||
greenout->setValue(tin);
|
||||
enableListener();
|
||||
listener->panelChanged (EvCATgreenout, greenout->getTextValue());
|
||||
listener->panelChanged (EvCATtempout, tempout->getTextValue());
|
||||
|
||||
if(!autotemp) {
|
||||
listener->panelChanged (EvCATgreenout, "");//greenout->getTextValue());
|
||||
listener->panelChanged (EvCATtempout, "");//tempout->getTextValue());
|
||||
}*/
|
||||
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user