mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Formulas are no longer shown in discard changes dialog
CURA-3221
This commit is contained in:
parent
cd9a8dbca5
commit
4514f53ea4
1 changed files with 3 additions and 2 deletions
|
@ -93,13 +93,14 @@ class UserChangesModel(ListModel):
|
||||||
break
|
break
|
||||||
|
|
||||||
original_value = container.getProperty(setting_key, "value")
|
original_value = container.getProperty(setting_key, "value")
|
||||||
if original_value is not None:
|
|
||||||
break
|
|
||||||
|
|
||||||
# If a value is a function, ensure it's called with the stack it's in.
|
# If a value is a function, ensure it's called with the stack it's in.
|
||||||
if isinstance(original_value, SettingFunction):
|
if isinstance(original_value, SettingFunction):
|
||||||
original_value = original_value(stack)
|
original_value = original_value(stack)
|
||||||
|
|
||||||
|
if original_value is not None:
|
||||||
|
break
|
||||||
|
|
||||||
item_to_add = {"key": setting_key,
|
item_to_add = {"key": setting_key,
|
||||||
"label": label,
|
"label": label,
|
||||||
"user_value": str(user_changes.getProperty(setting_key, "value")),
|
"user_value": str(user_changes.getProperty(setting_key, "value")),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue