mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:45:56 +08:00
Small fix for slice before main window visible.
This commit is contained in:
parent
f85cad37cf
commit
35d6aad6cd
@ -250,6 +250,9 @@ 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():
|
||||
Logger.log("w", "Attempt to create snapshot before complete initialization.")
|
||||
return
|
||||
Logger.log("i", "Creating thumbnail image (just before slice)...")
|
||||
try:
|
||||
self._snapshot = Snapshot.snapshot(width = 300, height = 300)
|
||||
|
Loading…
x
Reference in New Issue
Block a user