Browse Source

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.
Ghostkeeper 4 years ago
parent
commit
3921cc86d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/CuraEngineBackend/CuraEngineBackend.py

+ 1 - 1
plugins/CuraEngineBackend/CuraEngineBackend.py

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