mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
CURA-4525 prepare for print all or single build plate question
This commit is contained in:
parent
228039545b
commit
579f2b5ec6
1 changed files with 3 additions and 2 deletions
|
@ -255,7 +255,8 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
|||
self._request_job = [nodes, file_name, filter_by_machine, file_handler, kwargs]
|
||||
|
||||
# the build plates to be sent
|
||||
self._job_list = list(getattr(Application.getInstance().getController().getScene(), "gcode_list").keys())
|
||||
gcodes = getattr(Application.getInstance().getController().getScene(), "gcode_list")
|
||||
self._job_list = list(gcodes.keys())
|
||||
Logger.log("d", "build plates to be sent to printer: %s", (self._job_list))
|
||||
|
||||
if self._stage != OutputStage.ready:
|
||||
|
@ -268,7 +269,7 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
|||
return
|
||||
|
||||
self._add_build_plate_number = len(self._job_list) > 1
|
||||
if len(self._printers) > 1:
|
||||
if len(self._printers) > 1 or len(gcodes) > 1:
|
||||
self.spawnPrintView() # Ask user how to print it.
|
||||
elif len(self._printers) == 1:
|
||||
# If there is only one printer, don't bother asking.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue