mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 21:45:59 +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)
|
||||
|
||||
# Update the local global container stack reference
|
||||
old_global_container_stack = self._global_container_stack
|
||||
self._global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||
if self._global_container_stack:
|
||||
self.updateDefaultExtruder()
|
||||
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
|
||||
if self._global_container_stack:
|
||||
|
Loading…
x
Reference in New Issue
Block a user