mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:56:05 +08:00
Added delete to printerOutput device to ensure it is properly closed
CURA-1339
This commit is contained in:
parent
de9721e5de
commit
a4314638ab
@ -90,6 +90,10 @@ class PrinterOutputDevice(OutputDevice):
|
|||||||
def close(self):
|
def close(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
## Ensure that close gets called when object is destroyed
|
||||||
|
def __del__(self):
|
||||||
|
self.close()
|
||||||
|
|
||||||
@pyqtProperty(float, notify = headPositionChanged)
|
@pyqtProperty(float, notify = headPositionChanged)
|
||||||
def headX(self):
|
def headX(self):
|
||||||
return self._head_x
|
return self._head_x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user