mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Fix cluster host checking, show neat actionable message when not host
This commit is contained in:
parent
669e64afdb
commit
90c69e079c
4 changed files with 40 additions and 14 deletions
|
@ -45,6 +45,9 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||
self._setInterfaceElements()
|
||||
self._active_camera_url = QUrl() # type: QUrl
|
||||
|
||||
# Get the cluster configuration at least once to check if it is a host.
|
||||
self._update()
|
||||
|
||||
## Set all the interface elements and texts for this output device.
|
||||
def _setInterfaceElements(self) -> None:
|
||||
self.setPriority(3) # Make sure the output device gets selected above local file output
|
||||
|
|
|
@ -215,11 +215,6 @@ class LocalClusterOutputDeviceManager:
|
|||
LegacyDeviceNoLongerSupportedMessage().show()
|
||||
return
|
||||
|
||||
# Tell the user that they cannot connect to a non-host printer.
|
||||
if device.clusterSize < 1:
|
||||
NotClusterHostMessage().show()
|
||||
return
|
||||
|
||||
device.connect()
|
||||
machine.addConfiguredConnectionType(device.connectionType.value)
|
||||
CuraApplication.getInstance().getOutputDeviceManager().addOutputDevice(device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue