Add function to cancel pre-heating the bed

You could also do this by calling preheatBed with a temperature of 0. In fact, that's what this function does.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-07 13:23:56 +01:00
parent 9d8034d14f
commit d7bf23ca21
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -253,6 +253,12 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
put_request.setHeader(QNetworkRequest.ContentTypeHeader, "application/json")
self._manager.put(put_request, data.encode())
## Cancels pre-heating the heated bed of the printer.
#
# If the bed is not pre-heated, nothing happens.
def cancelPreheatBed(self):
self.preheatBed(temperature=0)
def _stopCamera(self):
self._camera_timer.stop()
if self._image_reply: