mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix codestyle issues
They were introduced by b28bfc9602
Contributes to issue CURA-266.
This commit is contained in:
parent
6ef5aeb02b
commit
67c82204ba
2 changed files with 8 additions and 8 deletions
|
@ -106,7 +106,7 @@ class ImageReaderUI(QObject):
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def onWidthChanged(self, value):
|
def onWidthChanged(self, value):
|
||||||
if self._ui_view and not self._disable_size_callbacks:
|
if self._ui_view and not self._disable_size_callbacks:
|
||||||
if (len(value) > 0):
|
if len(value) > 0:
|
||||||
self._width = float(value)
|
self._width = float(value)
|
||||||
else:
|
else:
|
||||||
self._width = 0
|
self._width = 0
|
||||||
|
@ -119,7 +119,7 @@ class ImageReaderUI(QObject):
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def onDepthChanged(self, value):
|
def onDepthChanged(self, value):
|
||||||
if self._ui_view and not self._disable_size_callbacks:
|
if self._ui_view and not self._disable_size_callbacks:
|
||||||
if (len(value) > 0):
|
if len(value) > 0:
|
||||||
self._depth = float(value)
|
self._depth = float(value)
|
||||||
else:
|
else:
|
||||||
self._depth = 0
|
self._depth = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue