mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 14:48:58 +08:00
Hiding a setting forces settingInheritance manager to re-evaluate
CURA-2361
This commit is contained in:
parent
6d2520ffbb
commit
482ea83284
@ -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…
x
Reference in New Issue
Block a user