mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Explicitly create MachineManager
This commit is contained in:
parent
12c51f4066
commit
0b8678d2ae
2 changed files with 2 additions and 6 deletions
|
@ -750,7 +750,7 @@ class CuraApplication(QtApplication):
|
|||
self._quality_manager = QualityManager(container_registry, parent = self)
|
||||
self._quality_manager.initialize()
|
||||
|
||||
self.getMachineManager() # ensure creation of machine manager
|
||||
self._machine_manager = MachineManager(self)
|
||||
|
||||
# Check if we should run as single instance or not
|
||||
self._setUpSingleInstanceServer()
|
||||
|
@ -845,7 +845,7 @@ class CuraApplication(QtApplication):
|
|||
|
||||
def getMachineManager(self, *args) -> MachineManager:
|
||||
if self._machine_manager is None:
|
||||
self._machine_manager = MachineManager.createMachineManager()
|
||||
self._machine_manager = MachineManager(self)
|
||||
return self._machine_manager
|
||||
|
||||
def getExtruderManager(self, *args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue