mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Select correct machine type connecting to output device
This commit is contained in:
parent
01e665a0d7
commit
b18f9469bf
1 changed files with 7 additions and 0 deletions
|
@ -250,6 +250,13 @@ class LocalClusterOutputDeviceManager:
|
|||
if device.key not in output_device_manager.getOutputDeviceIds():
|
||||
output_device_manager.addOutputDevice(device)
|
||||
|
||||
# Pre-select the correct machine type of the group host.
|
||||
# We first need to find the correct definition because the machine manager only takes name as input, not ID.
|
||||
definitions = CuraApplication.getInstance().getContainerRegistry().findContainers(id=device.printerType)
|
||||
if not definitions:
|
||||
return
|
||||
CuraApplication.getInstance().getMachineManager().switchPrinterType(definitions[0].getName())
|
||||
|
||||
## Nudge the user to start using Ultimaker Cloud.
|
||||
@staticmethod
|
||||
def _showCloudFlowMessage(device: LocalClusterOutputDevice) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue