mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Fixed for the inheritance icon and custom profiles.
CURA-2674 Inheritance icon not shown for saved profile.
This commit is contained in:
parent
cc549932c4
commit
6d1f766ef3
1 changed files with 5 additions and 0 deletions
|
@ -170,11 +170,16 @@ class SettingInheritanceManager(QObject):
|
||||||
def _onGlobalContainerChanged(self):
|
def _onGlobalContainerChanged(self):
|
||||||
if self._global_container_stack:
|
if self._global_container_stack:
|
||||||
self._global_container_stack.propertyChanged.disconnect(self._onPropertyChanged)
|
self._global_container_stack.propertyChanged.disconnect(self._onPropertyChanged)
|
||||||
|
self._global_container_stack.containersChanged.disconnect(self._onContainersChanged)
|
||||||
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
|
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
if self._global_container_stack:
|
if self._global_container_stack:
|
||||||
|
self._global_container_stack.containersChanged.connect(self._onContainersChanged)
|
||||||
self._global_container_stack.propertyChanged.connect(self._onPropertyChanged)
|
self._global_container_stack.propertyChanged.connect(self._onPropertyChanged)
|
||||||
self._onActiveExtruderChanged()
|
self._onActiveExtruderChanged()
|
||||||
|
|
||||||
|
def _onContainersChanged(self, container):
|
||||||
|
self._onActiveExtruderChanged()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def createSettingInheritanceManager(engine=None, script_engine=None):
|
def createSettingInheritanceManager(engine=None, script_engine=None):
|
||||||
return SettingInheritanceManager()
|
return SettingInheritanceManager()
|
Loading…
Add table
Add a link
Reference in a new issue