From 69f92ff3118041654b20bf80ff66db7974f6a743 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 2 Aug 2019 14:34:14 +0200 Subject: [PATCH] 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. --- plugins/PerObjectSettingsTool/PerObjectItem.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/PerObjectSettingsTool/PerObjectItem.qml b/plugins/PerObjectSettingsTool/PerObjectItem.qml index 559ad2bf81..7c6ece12db 100644 --- a/plugins/PerObjectSettingsTool/PerObjectItem.qml +++ b/plugins/PerObjectSettingsTool/PerObjectItem.qml @@ -29,6 +29,17 @@ UM.TooltipArea 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) + } + } }