mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:45:55 +08:00
Do not use a lambda but a member function so reloading works properly
Fixes #99
This commit is contained in:
parent
937ba1d317
commit
ef86eb480f
@ -330,7 +330,8 @@ class CuraApplication(QtApplication):
|
|||||||
file_name = node.getMeshData().getFileName()
|
file_name = node.getMeshData().getFileName()
|
||||||
if file_name:
|
if file_name:
|
||||||
job = ReadMeshJob(file_name)
|
job = ReadMeshJob(file_name)
|
||||||
job.finished.connect(lambda j: node.setMeshData(j.getResult()))
|
job._node = node
|
||||||
|
job.finished.connect(self._reloadMeshFinished)
|
||||||
job.start()
|
job.start()
|
||||||
|
|
||||||
## Get logging data of the backend engine
|
## Get logging data of the backend engine
|
||||||
@ -538,3 +539,6 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
Preferences.getInstance().setValue("cura/recent_files", pref)
|
Preferences.getInstance().setValue("cura/recent_files", pref)
|
||||||
self.recentFilesChanged.emit()
|
self.recentFilesChanged.emit()
|
||||||
|
|
||||||
|
def _reloadMeshFinished(self, job):
|
||||||
|
job._node.setMeshData(job.getResult())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user