mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 07:35:59 +08:00
Activate the first available Cloud printer if the activeMachine is empty
CURA-7019
This commit is contained in:
parent
3d26b6886f
commit
1262d1f641
@ -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…
x
Reference in New Issue
Block a user