mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix some code-style
This commit is contained in:
parent
e1bc5d0f74
commit
50da6d5176
1 changed files with 5 additions and 2 deletions
|
@ -69,8 +69,8 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
break
|
break
|
||||||
|
|
||||||
self._application = CuraApplication.getInstance() #type: CuraApplication
|
self._application = CuraApplication.getInstance() #type: CuraApplication
|
||||||
self._multi_build_plate_model = None #type: MultiBuildPlateModel
|
self._multi_build_plate_model = None #type: Optional[MultiBuildPlateModel]
|
||||||
self._machine_error_checker = None #type: MachineErrorChecker
|
self._machine_error_checker = None #type: Optional[MachineErrorChecker]
|
||||||
|
|
||||||
if not default_engine_location:
|
if not default_engine_location:
|
||||||
raise EnvironmentError("Could not find CuraEngine")
|
raise EnvironmentError("Could not find CuraEngine")
|
||||||
|
@ -328,6 +328,9 @@ class CuraEngineBackend(QObject, Backend):
|
||||||
|
|
||||||
if job.getResult() == StartJobResult.SettingError:
|
if job.getResult() == StartJobResult.SettingError:
|
||||||
if self._application.platformActivity:
|
if self._application.platformActivity:
|
||||||
|
if not self._global_container_stack:
|
||||||
|
Logger.log("w", "Global container stack not assigned to CuraEngineBackend!")
|
||||||
|
return
|
||||||
extruders = list(ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()))
|
extruders = list(ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()))
|
||||||
error_keys = [] #type: List[str]
|
error_keys = [] #type: List[str]
|
||||||
for extruder in extruders:
|
for extruder in extruders:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue