nodeparamviewwidgetbridge: connect checkbox "clicked" signal rather than

"toggled"

Only signal a change if the user made one. Toggled would be signalled even when
we set it programmatically (e.g. by simply creating the checkbox widget and
setting its state) causing unnecessary re-caches of the sequence.
This commit is contained in:
itsmattkc
2020-02-16 12:37:10 +11:00
parent a6f4922d66
commit a987899e5c
@@ -228,7 +228,7 @@ void NodeParamViewWidgetBridge::CreateWidgets()
{
QCheckBox* check_box = new QCheckBox();
widgets_.append(check_box);
connect(check_box, &QCheckBox::toggled, this, &NodeParamViewWidgetBridge::WidgetCallback);
connect(check_box, &QCheckBox::clicked, this, &NodeParamViewWidgetBridge::WidgetCallback);
break;
}
case NodeParam::kFont: