mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Add an "activeDefinitionId" property to MachineManager
This commit is contained in:
parent
efdf1d78d1
commit
5ff5ed3856
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ class MachineManagerModel(QObject):
|
|||
if variant:
|
||||
return variant.getId()
|
||||
|
||||
@pyqtProperty(str, notify = globalContainerChanged)
|
||||
def activeDefinitionId(self):
|
||||
return Application.getInstance().getGlobalContainerStack().getBottom().id
|
||||
|
||||
@pyqtSlot(str, str)
|
||||
def renameMachine(self, machine_id, new_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue