diff options
author | Remco Burema <r.burema@ultimaker.com> | 2021-01-21 10:55:45 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2021-01-21 10:55:45 +0300 |
commit | f4ef3b44e386238781cd0705edd9124d3eac5183 (patch) | |
tree | 1edc5454c66cc10746d33197abfc8c209ecb2abe /plugins/CuraEngineBackend | |
parent | 4fc0612806bf361c7e85bb43db87577feb71caf9 (diff) |
Properly retrieve snapshot (now made on slice).
Circumvents the snapshot/thumbnail not working when the focus is not on the main window, even if the thread is main. This was an issue when writing a file to Digital Factory becasue that workflow uses a modal window.
Thanks for the idea Jelle!
Diffstat (limited to 'plugins/CuraEngineBackend')
-rwxr-xr-x | plugins/CuraEngineBackend/CuraEngineBackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index 7a88618a7e..eed9d56741 100755 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -257,7 +257,7 @@ class CuraEngineBackend(QObject, Backend): Logger.logException("w", "Failed to create snapshot image") self._snapshot = None # Failing to create thumbnail should not fail creation of UFP - def getLatestSnapShot(self) -> Optional[QImage]: + def getLatestSnapshot(self) -> Optional[QImage]: return self._snapshot def slice(self) -> None: |