mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:45:54 +08:00
Fix some code-style
This commit is contained in:
parent
e1bc5d0f74
commit
50da6d5176
@ -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…
x
Reference in New Issue
Block a user