mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:59:11 +08:00
Use callLater to set the active machine in MachineManager
This prevents exceptions in setActiveMachine from preventing Cura to start.
This commit is contained in:
parent
f302e06654
commit
0aea7bdb5c
@ -38,8 +38,7 @@ class MachineManagerModel(QObject):
|
|||||||
|
|
||||||
if active_machine_id != "":
|
if active_machine_id != "":
|
||||||
# An active machine was saved, so restore it.
|
# An active machine was saved, so restore it.
|
||||||
self.setActiveMachine(active_machine_id)
|
Application.getInstance().callLater(self.setActiveMachine, active_machine_id)
|
||||||
pass
|
|
||||||
|
|
||||||
globalContainerChanged = pyqtSignal()
|
globalContainerChanged = pyqtSignal()
|
||||||
activeMaterialChanged = pyqtSignal()
|
activeMaterialChanged = pyqtSignal()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user