Fix typing

CURA-8723
This commit is contained in:
Jaime van Kessel 2021-12-02 15:07:50 +01:00
parent 064a845f71
commit fb09e55b02

View file

@ -234,7 +234,7 @@ class ThreeMFWriter(MeshWriter):
return True
@call_on_qt_thread # must be called from the main thread because of OpenGL
def _createSnapshot(self) -> None:
def _createSnapshot(self) -> Optional[Snapshot.snapshot]:
Logger.log("d", "Creating thumbnail image...")
if not CuraApplication.getInstance().isVisible:
Logger.log("w", "Can't create snapshot when renderer not initialized.")