diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 259f087149..2a456c3ff1 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -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 diff --git a/resources/qml/WorkspaceSummaryDialog.qml b/resources/qml/WorkspaceSummaryDialog.qml index bcd0ac6819..1f52dd3719 100644 --- a/resources/qml/WorkspaceSummaryDialog.qml +++ b/resources/qml/WorkspaceSummaryDialog.qml @@ -91,7 +91,21 @@ UM.Dialog text: catalog.i18nc("@action:label", "Printer settings") font.bold: true } - + Row + { + width: parent.width + height: childrenRect.height + Label + { + text: catalog.i18nc("@action:label", "Type") + width: parent.width / 3 + } + Label + { + text: manager.activeDefinitionName + width: parent.width / 3 + } + } Row { width: parent.width