mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-10 01:39:00 +08:00
Add an "activeDefinitionId" property to MachineManager
This commit is contained in:
parent
efdf1d78d1
commit
5ff5ed3856
@ -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…
x
Reference in New Issue
Block a user