mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Hiding a setting forces settingInheritance manager to re-evaluate
CURA-2361
This commit is contained in:
parent
6d2520ffbb
commit
482ea83284
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -33,6 +33,7 @@ ScrollView
|
|||
exclude: ["machine_settings"]
|
||||
expanded: Printer.expandedCategories
|
||||
onExpandedChanged: Printer.setExpandedCategories(expanded)
|
||||
onVisibilityChanged: Cura.SettingInheritanceManager.forceUpdate()
|
||||
}
|
||||
|
||||
delegate: Loader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue