mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:19:05 +08:00
Prettier number display in Profiles page. CURA-2006
This commit is contained in:
parent
83b89d09d8
commit
80214d07bc
@ -10,6 +10,7 @@ import UM.Logger
|
||||
import UM.Qt
|
||||
import UM.Settings
|
||||
|
||||
|
||||
class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
||||
KeyRole = Qt.UserRole + 1
|
||||
LabelRole = Qt.UserRole + 2
|
||||
@ -149,7 +150,7 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
||||
"key": definition.key,
|
||||
"label": definition.label,
|
||||
"unit": definition.unit,
|
||||
"profile_value": profile_value,
|
||||
"user_value": user_value,
|
||||
"profile_value": "" if profile_value is None else str(profile_value), # it is for display only
|
||||
"user_value": "" if user_value is None else str(user_value),
|
||||
"category": current_category
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user