mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Activate the first available Cloud printer if the activeMachine is empty
CURA-7019
This commit is contained in:
parent
3d26b6886f
commit
1262d1f641
1 changed files with 4 additions and 1 deletions
|
@ -180,7 +180,10 @@ class CloudOutputDeviceManager:
|
|||
message.setProgress((idx / len(new_devices)) * 100)
|
||||
CuraApplication.getInstance().processEvents()
|
||||
self._remote_clusters[device.getId()] = device
|
||||
self._createMachineFromDiscoveredDevice(device.getId(), activate = False)
|
||||
|
||||
# If there is no active machine, activate the first available cloud printer
|
||||
activate = not CuraApplication.getInstance().getMachineManager().activeMachine
|
||||
self._createMachineFromDiscoveredDevice(device.getId(), activate = activate)
|
||||
|
||||
message.setProgress(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue