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:
Ghostkeeper 2016-06-02 11:17:39 +02:00
parent 73f12ffd99
commit 95e633f16c
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -30,6 +30,7 @@ from UM.Settings.ContainerRegistry import ContainerRegistry
from UM.i18n import i18nCatalog
from . import ExtruderManager
from . import PlatformPhysics
from . import BuildVolume
from . import CameraAnimation
@ -326,6 +327,8 @@ class CuraApplication(QtApplication):
qmlRegisterSingletonType(MachineManagerModel.MachineManagerModel, "Cura", 1, 0, "MachineManager",
MachineManagerModel.createMachineManagerModel)
self._extruder_manager = ExtruderManager.ExtruderManager()
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles))
self.initializeEngine()