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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user