mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Printer can now actually be linked
CURA-336
This commit is contained in:
parent
3b51c31772
commit
bb9d3a47ef
3 changed files with 34 additions and 2 deletions
|
@ -30,3 +30,12 @@ class DiscoverUM3Action(MachineAction):
|
|||
return [printers[printer] for printer in printers]
|
||||
else:
|
||||
return []
|
||||
|
||||
@pyqtSlot(str)
|
||||
def setKey(self, key):
|
||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||
if global_container_stack:
|
||||
if "key" in global_container_stack.getMetaData():
|
||||
global_container_stack.setMetaDataEntry("key", key)
|
||||
else:
|
||||
global_container_stack.addMetaDataEntry("key", key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue