mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Aborting & pausing prints is now possible again from the Cluster output device
CL-541
This commit is contained in:
parent
dea13899b3
commit
d8c4834362
2 changed files with 25 additions and 2 deletions
|
@ -13,6 +13,8 @@ from cura.PrinterOutput.PrinterOutputModel import PrinterOutputModel
|
|||
from cura.PrinterOutput.PrintJobOutputModel import PrintJobOutputModel
|
||||
from cura.PrinterOutput.MaterialOutputModel import MaterialOutputModel
|
||||
|
||||
from .ClusterUM3PrinterOutputController import ClusterUM3PrinterOutputController
|
||||
|
||||
from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply
|
||||
from PyQt5.QtGui import QDesktopServices
|
||||
from PyQt5.QtCore import pyqtSlot, QUrl, pyqtSignal, pyqtProperty, QObject
|
||||
|
@ -221,7 +223,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
break
|
||||
|
||||
if print_job is None:
|
||||
print_job = PrintJobOutputModel(output_controller = None,
|
||||
print_job = PrintJobOutputModel(output_controller = ClusterUM3PrinterOutputController(self),
|
||||
key = print_job_data["uuid"],
|
||||
name = print_job_data["name"])
|
||||
print_job.updateTimeTotal(print_job_data["time_total"])
|
||||
|
@ -268,7 +270,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
break
|
||||
|
||||
if printer is None:
|
||||
printer = PrinterOutputModel(output_controller=None, number_of_extruders=self._number_of_extruders)
|
||||
printer = PrinterOutputModel(output_controller=ClusterUM3PrinterOutputController(self), number_of_extruders=self._number_of_extruders)
|
||||
self._printers.append(printer)
|
||||
printer_list_changed = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue