Don't call @property function

It directly returns the boolean. No need to call it. Calling it crashes saying that a bool object can't be called.
This commit is contained in:
Ghostkeeper 2021-01-28 11:48:18 +01:00
parent 35d6aad6cd
commit 3921cc86d1
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -250,7 +250,7 @@ class CuraEngineBackend(QObject, Backend):
@call_on_qt_thread # must be called from the main thread because of OpenGL @call_on_qt_thread # must be called from the main thread because of OpenGL
def _createSnapshot(self) -> None: def _createSnapshot(self) -> None:
self._snapshot = None self._snapshot = None
if not CuraApplication.getInstance().isVisible(): if not CuraApplication.getInstance().isVisible:
Logger.log("w", "Attempt to create snapshot before complete initialization.") Logger.log("w", "Attempt to create snapshot before complete initialization.")
return return
Logger.log("i", "Creating thumbnail image (just before slice)...") Logger.log("i", "Creating thumbnail image (just before slice)...")