Update when a setting is removed from the list

Add a connection to check when a setting was or not removed from the list of the added settings in the PerObjectSettings panel.
This commit is contained in:
Diego Prado Gesto 2019-08-02 14:34:14 +02:00
parent c841382bbd
commit 69f92ff311

View file

@ -29,6 +29,17 @@ UM.TooltipArea
UM.ActiveTool.forceUpdate(); UM.ActiveTool.forceUpdate();
} }
} }
// When the user removes settings from the list addedSettingsModel, we need to recheck if the
// setting is visible or not to show a mark in the CheckBox.
Connections
{
target: addedSettingsModel
onVisibleCountChanged:
{
check.checked = addedSettingsModel.getVisible(model.key)
}
}
} }