Hiding a setting forces settingInheritance manager to re-evaluate

CURA-2361
This commit is contained in:
Jaime van Kessel 2016-09-16 15:32:16 +02:00
parent 6d2520ffbb
commit 482ea83284
2 changed files with 5 additions and 0 deletions

View file

@ -40,6 +40,10 @@ class SettingInheritanceManager(QObject):
self._settings_with_inheritance_warning.remove(key)
self.settingsWithIntheritanceChanged.emit()
@pyqtSlot()
def forceUpdate(self):
self._update()
def _onActiveExtruderChanged(self):
if self._active_container_stack:
self._active_container_stack.propertyChanged.disconnect(self._onPropertyChanged)

View file

@ -33,6 +33,7 @@ ScrollView
exclude: ["machine_settings"]
expanded: Printer.expandedCategories
onExpandedChanged: Printer.setExpandedCategories(expanded)
onVisibilityChanged: Cura.SettingInheritanceManager.forceUpdate()
}
delegate: Loader