mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Use one line conditional assignment
Use one line conditional assignement instead of if else block. The intent is now clearer and the code is easier to read.
This commit is contained in:
parent
c1ae1872d0
commit
a39fed1dc3
1 changed files with 1 additions and 4 deletions
|
@ -204,10 +204,7 @@ class MachineErrorChecker(QObject):
|
||||||
self._has_errors = result
|
self._has_errors = result
|
||||||
self.hasErrorUpdated.emit()
|
self.hasErrorUpdated.emit()
|
||||||
self._machine_manager.stacksValidationChanged.emit()
|
self._machine_manager.stacksValidationChanged.emit()
|
||||||
if keys_to_recheck is None:
|
self._keys_to_check = keys_to_recheck if keys_to_recheck else set()
|
||||||
self._keys_to_check = set()
|
|
||||||
else:
|
|
||||||
self._keys_to_check = keys_to_recheck
|
|
||||||
self._need_to_check = False
|
self._need_to_check = False
|
||||||
self._check_in_progress = False
|
self._check_in_progress = False
|
||||||
self.needToWaitForResultChanged.emit()
|
self.needToWaitForResultChanged.emit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue