mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 12:45:57 +08:00
Fix wrong indentation for camera view
This commit is contained in:
parent
e3f319a644
commit
08766ee66f
@ -328,14 +328,15 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
def _stopCamera(self):
|
def _stopCamera(self):
|
||||||
if self._camera_timer.isActive():
|
if self._camera_timer.isActive():
|
||||||
self._camera_timer.stop()
|
self._camera_timer.stop()
|
||||||
if self._image_reply:
|
|
||||||
try:
|
if self._image_reply:
|
||||||
self._image_reply.abort()
|
try:
|
||||||
self._image_reply.downloadProgress.disconnect(self._onStreamDownloadProgress)
|
self._image_reply.abort()
|
||||||
except RuntimeError:
|
self._image_reply.downloadProgress.disconnect(self._onStreamDownloadProgress)
|
||||||
pass # It can happen that the wrapped c++ object is already deleted.
|
except RuntimeError:
|
||||||
self._image_reply = None
|
pass # It can happen that the wrapped c++ object is already deleted.
|
||||||
self._image_request = None
|
self._image_reply = None
|
||||||
|
self._image_request = None
|
||||||
|
|
||||||
def _startCamera(self):
|
def _startCamera(self):
|
||||||
if self._use_stream:
|
if self._use_stream:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user