mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix connecting material name change signal on startup. Contributes to CURA-4243.
This commit is contained in:
parent
3b25191949
commit
41cde7c7f4
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ class MachineManager(QObject):
|
||||||
"The selected material is incompatible with the selected machine or configuration."),
|
"The selected material is incompatible with the selected machine or configuration."),
|
||||||
title = catalog.i18nc("@info:title", "Incompatible Material"))
|
title = catalog.i18nc("@info:title", "Incompatible Material"))
|
||||||
|
|
||||||
|
containers = ContainerRegistry.getInstance().findInstanceContainers(id = self.activeMaterialId)
|
||||||
|
if containers:
|
||||||
|
containers[0].nameChanged.connect(self._onMaterialNameChanged)
|
||||||
|
|
||||||
globalContainerChanged = pyqtSignal() # Emitted whenever the global stack is changed (ie: when changing between printers, changing a global profile, but not when changing a value)
|
globalContainerChanged = pyqtSignal() # Emitted whenever the global stack is changed (ie: when changing between printers, changing a global profile, but not when changing a value)
|
||||||
activeMaterialChanged = pyqtSignal()
|
activeMaterialChanged = pyqtSignal()
|
||||||
activeVariantChanged = pyqtSignal()
|
activeVariantChanged = pyqtSignal()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue