mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Don't try to activate a machine that we don't have a definition for
Contributes to issue CURA-3973.
This commit is contained in:
parent
c66740d8e4
commit
df2ec7bd73
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class MachineManager(QObject):
|
||||||
self._printer_output_devices = []
|
self._printer_output_devices = []
|
||||||
Application.getInstance().getOutputDeviceManager().outputDevicesChanged.connect(self._onOutputDevicesChanged)
|
Application.getInstance().getOutputDeviceManager().outputDevicesChanged.connect(self._onOutputDevicesChanged)
|
||||||
|
|
||||||
if active_machine_id != "":
|
if active_machine_id != "" and ContainerRegistry.getInstance().findDefinitionContainers(id = active_machine_id):
|
||||||
# An active machine was saved, so restore it.
|
# An active machine was saved, so restore it.
|
||||||
self.setActiveMachine(active_machine_id)
|
self.setActiveMachine(active_machine_id)
|
||||||
if self._global_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
|
if self._global_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue