mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 23:37:51 -06:00
Load extruder manager on start-up
This will consequently also load all extruder stacks of the current machine whenever the current machine changes. Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
parent
73f12ffd99
commit
95e633f16c
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,7 @@ from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
|
from . import ExtruderManager
|
||||||
from . import PlatformPhysics
|
from . import PlatformPhysics
|
||||||
from . import BuildVolume
|
from . import BuildVolume
|
||||||
from . import CameraAnimation
|
from . import CameraAnimation
|
||||||
|
@ -326,6 +327,8 @@ class CuraApplication(QtApplication):
|
||||||
qmlRegisterSingletonType(MachineManagerModel.MachineManagerModel, "Cura", 1, 0, "MachineManager",
|
qmlRegisterSingletonType(MachineManagerModel.MachineManagerModel, "Cura", 1, 0, "MachineManager",
|
||||||
MachineManagerModel.createMachineManagerModel)
|
MachineManagerModel.createMachineManagerModel)
|
||||||
|
|
||||||
|
self._extruder_manager = ExtruderManager.ExtruderManager()
|
||||||
|
|
||||||
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
|
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
|
||||||
self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles))
|
self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles))
|
||||||
self.initializeEngine()
|
self.initializeEngine()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue