mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 11:47:50 -06:00
CURA-4641 Minor changes
This commit is contained in:
parent
75e4c34a6a
commit
e5ac33a929
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ from UM.i18n import i18nCatalog
|
||||||
import UM.Qt.ListModel
|
import UM.Qt.ListModel
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
import UM.FlameProfiler
|
import UM.FlameProfiler
|
||||||
from UM.Settings.ContainerRegistry import ContainerRegistry #To listen for changes to the materials.
|
|
||||||
|
|
||||||
from cura.Settings.ExtruderStack import ExtruderStack # To listen to changes on the extruders.
|
from cura.Settings.ExtruderStack import ExtruderStack # To listen to changes on the extruders.
|
||||||
|
|
||||||
|
@ -77,7 +76,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
||||||
# Listen to changes
|
# Listen to changes
|
||||||
Application.getInstance().globalContainerStackChanged.connect(self._extrudersChanged) # When the machine is swapped we must update the active machine extruders
|
Application.getInstance().globalContainerStackChanged.connect(self._extrudersChanged) # When the machine is swapped we must update the active machine extruders
|
||||||
Application.getInstance().getExtruderManager().extrudersChanged.connect(self._extrudersChanged) # When the extruders change we must link to the stack-changed signal of the new extruder
|
Application.getInstance().getExtruderManager().extrudersChanged.connect(self._extrudersChanged) # When the extruders change we must link to the stack-changed signal of the new extruder
|
||||||
ContainerRegistry.getInstance().containerMetaDataChanged.connect(self._onExtruderStackContainersChanged) # When meta data from a material container changes we must update
|
Application.getInstance().getContainerRegistry().containerMetaDataChanged.connect(self._onExtruderStackContainersChanged) # When meta data from a material container changes we must update
|
||||||
self._extrudersChanged() # Also calls _updateExtruders
|
self._extrudersChanged() # Also calls _updateExtruders
|
||||||
|
|
||||||
addOptionalExtruderChanged = pyqtSignal()
|
addOptionalExtruderChanged = pyqtSignal()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue