mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:55:54 +08:00
Instead of the setting function we now show the calculated value for settingoverride dialog
CURA-3221
This commit is contained in:
parent
af21146fef
commit
9b63f1237a
@ -5,6 +5,7 @@ from UM.Application import Application
|
||||
from cura.Settings.ExtruderManager import ExtruderManager
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from UM.i18n import i18nCatalog
|
||||
from UM.Settings.SettingFunction import SettingFunction
|
||||
|
||||
import os
|
||||
|
||||
@ -98,9 +99,13 @@ class UserChangesModel(ListModel):
|
||||
if original_value is not None:
|
||||
break
|
||||
|
||||
# If a value is a function, ensure it's called with the stack it's in.
|
||||
if isinstance(original_value, SettingFunction):
|
||||
original_value = original_value(stack)
|
||||
|
||||
item_to_add = {"key": setting_key,
|
||||
"label": label,
|
||||
"user_value": user_changes.getProperty(setting_key, "value"),
|
||||
"user_value": str(user_changes.getProperty(setting_key, "value")),
|
||||
"original_value": str(original_value),
|
||||
"extruder": "",
|
||||
"category": category_label}
|
||||
|
Loading…
x
Reference in New Issue
Block a user