mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Implement ServiceStateChange.Removed (bonjour undiscovery)
Contributes to CURA-1851
This commit is contained in:
parent
050e81053f
commit
136755758e
3 changed files with 23 additions and 9 deletions
|
@ -233,6 +233,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
self._updateHeadPosition(head_x, head_y, head_z)
|
||||
|
||||
def close(self):
|
||||
self._updateJobState("")
|
||||
self.setConnectionState(ConnectionState.closed)
|
||||
if self._progress_message:
|
||||
self._progress_message.hide()
|
||||
|
@ -279,6 +280,11 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
self._update_timer.start()
|
||||
self._camera_timer.start()
|
||||
|
||||
## Stop requesting data from printer
|
||||
def disconnect(self):
|
||||
Logger.log("d", "Connection with printer %s with ip %s stopped", self._key, self._address)
|
||||
self.close()
|
||||
|
||||
newImage = pyqtSignal()
|
||||
|
||||
@pyqtProperty(QUrl, notify = newImage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue