Added machine type to workspace summary dialog

CURA-1263
This commit is contained in:
Jaime van Kessel 2016-12-16 12:40:59 +01:00
parent 0e09de195b
commit 8391a7971b
2 changed files with 24 additions and 1 deletions

View file

@ -982,6 +982,15 @@ class MachineManager(QObject):
return ""
@pyqtProperty(str, notify=globalContainerChanged)
def activeDefinitionName(self):
if self._global_container_stack:
definition = self._global_container_stack.getBottom()
if definition:
return definition.getMetaDataEntry("name", "")
return ""
## Get the Definition ID to use to select quality profiles for the currently active machine
# \returns DefinitionID (string) if found, empty string otherwise
# \sa getQualityDefinitionId