Fix crash when saving ucp project

CURA-11403
This commit is contained in:
c.lamboo 2024-02-26 15:37:54 +01:00
parent fca8d2a751
commit 0d40d2b07f

View file

@ -118,7 +118,7 @@ class SettingsExportModel(QObject):
setting_type = settings_stack.getProperty(setting_to_export, "type") setting_type = settings_stack.getProperty(setting_to_export, "type")
if setting_type is not None: if setting_type is not None:
# This is not very good looking, but will do for now # This is not very good looking, but will do for now
value = SettingDefinition.settingValueToString(setting_type, value) + " " + unit value = f"{str(SettingDefinition.settingValueToString(setting_type, value))} {unit}"
else: else:
value = str(value) value = str(value)