mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 13:05:54 +08:00
Remove global changed check that prevents signal emit
CURA-5157
This commit is contained in:
parent
ca4cb419ff
commit
98eed89686
@ -231,13 +231,11 @@ class MachineManager(QObject):
|
|||||||
extruder_stack.containersChanged.disconnect(self._onInstanceContainersChanged)
|
extruder_stack.containersChanged.disconnect(self._onInstanceContainersChanged)
|
||||||
|
|
||||||
# Update the local global container stack reference
|
# Update the local global container stack reference
|
||||||
old_global_container_stack = self._global_container_stack
|
|
||||||
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.updateDefaultExtruder()
|
self.updateDefaultExtruder()
|
||||||
self.updateNumberExtrudersEnabled()
|
self.updateNumberExtrudersEnabled()
|
||||||
if old_global_container_stack != self._global_container_stack:
|
self.globalContainerChanged.emit()
|
||||||
self.globalContainerChanged.emit()
|
|
||||||
|
|
||||||
# after switching the global stack we reconnect all the signals and set the variant and material references
|
# after switching the global stack we reconnect all the signals and set the variant and material references
|
||||||
if self._global_container_stack:
|
if self._global_container_stack:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user