Select the UM3 that we are connected to if it is in the list

CURA-2035
This commit is contained in:
fieldOfView 2016-08-09 15:54:20 +02:00
parent 7e8eb2044a
commit 7011520845
2 changed files with 23 additions and 0 deletions

View file

@ -55,3 +55,13 @@ class DiscoverUM3Action(MachineAction):
if self._network_plugin:
# Ensure that the connection states are refreshed.
self._network_plugin.reCheckConnections()
@pyqtSlot(result = str)
def getStoredKey(self):
global_container_stack = Application.getInstance().getGlobalContainerStack()
if global_container_stack:
meta_data = global_container_stack.getMetaData()
if "um_network_key" in meta_data:
return global_container_stack.getMetaDataEntry("um_network_key")
return ""