diff --git a/plugins/3MFReader/SpecificSettingsModel.py b/plugins/3MFReader/SpecificSettingsModel.py index af203ad759..275b9c03ac 100644 --- a/plugins/3MFReader/SpecificSettingsModel.py +++ b/plugins/3MFReader/SpecificSettingsModel.py @@ -33,6 +33,10 @@ class SpecificSettingsModel(ListModel): if setting_type is not None: # This is not very good looking, but will do for now value = str(SettingDefinition.settingValueToString(setting_type, value)) + " " + str(unit) + if setting_type == "enum": + options = stack.getProperty(setting, "options") + value = options[stack.getProperty(setting, "value")] + else: value = str(value) diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml index eeb33da4c7..adb070e862 100644 --- a/plugins/3MFReader/WorkspaceDialog.qml +++ b/plugins/3MFReader/WorkspaceDialog.qml @@ -216,6 +216,16 @@ UM.Dialog headers: ["category", "label", "value"] rows: manager.exportedSettingModelItems } + + Connections + { + target: manager + function onExportedSettingModelChanged() + { + tableModel.clear() + tableModel.rows = manager.exportedSettingModelItems + } + } } }