mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix wrong indentation for camera view
This commit is contained in:
parent
e3f319a644
commit
08766ee66f
1 changed files with 9 additions and 8 deletions
|
@ -328,14 +328,15 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
def _stopCamera(self):
|
||||
if self._camera_timer.isActive():
|
||||
self._camera_timer.stop()
|
||||
if self._image_reply:
|
||||
try:
|
||||
self._image_reply.abort()
|
||||
self._image_reply.downloadProgress.disconnect(self._onStreamDownloadProgress)
|
||||
except RuntimeError:
|
||||
pass # It can happen that the wrapped c++ object is already deleted.
|
||||
self._image_reply = None
|
||||
self._image_request = None
|
||||
|
||||
if self._image_reply:
|
||||
try:
|
||||
self._image_reply.abort()
|
||||
self._image_reply.downloadProgress.disconnect(self._onStreamDownloadProgress)
|
||||
except RuntimeError:
|
||||
pass # It can happen that the wrapped c++ object is already deleted.
|
||||
self._image_reply = None
|
||||
self._image_request = None
|
||||
|
||||
def _startCamera(self):
|
||||
if self._use_stream:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue