mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added delete to printerOutput device to ensure it is properly closed
CURA-1339
This commit is contained in:
parent
de9721e5de
commit
a4314638ab
1 changed files with 4 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ class PrinterOutputDevice(OutputDevice):
|
|||
def close(self):
|
||||
pass
|
||||
|
||||
## Ensure that close gets called when object is destroyed
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
||||
@pyqtProperty(float, notify = headPositionChanged)
|
||||
def headX(self):
|
||||
return self._head_x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue