mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Set some meta data before switching active stacks, fix manual added device pairing
This commit is contained in:
parent
609ceed140
commit
c3d846440d
3 changed files with 17 additions and 16 deletions
|
@ -127,8 +127,8 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||
if network_key.startswith(self.clusterData.host_name):
|
||||
return True
|
||||
# However, for manually added printers, the local IP address is used in lieu of a proper
|
||||
# network key, so check for that as well
|
||||
if self.clusterData.host_internal_ip is not None and network_key in self.clusterData.host_internal_ip:
|
||||
# network key, so check for that as well. It is in the format "manual:10.1.10.1".
|
||||
if network_key.endswith(self.clusterData.host_internal_ip):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue