mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Check the content of definition changes container in SliceInfo
CURA-4107 Now we always create a definition changes container for a stack, checking if the definition changes is empty in SliceInfo doesn't work. It should check the content too.
This commit is contained in:
parent
abcec2157e
commit
b9397aaa57
1 changed files with 9 additions and 1 deletions
|
@ -69,7 +69,15 @@ class SliceInfo(Extension):
|
||||||
else:
|
else:
|
||||||
data["active_mode"] = "custom"
|
data["active_mode"] = "custom"
|
||||||
|
|
||||||
data["machine_settings_changed_by_user"] = global_container_stack.definitionChanges.getId() != "empty"
|
definition_changes = global_container_stack.definitionChanges
|
||||||
|
machine_settings_changed_by_user = False
|
||||||
|
if definition_changes.getId() != "empty":
|
||||||
|
# Now a definition_changes container will always be created for a stack,
|
||||||
|
# so we also need to check if there is any instance in the definition_changes container
|
||||||
|
if definition_changes.getAllKeys():
|
||||||
|
machine_settings_changed_by_user = True
|
||||||
|
|
||||||
|
data["machine_settings_changed_by_user"] = machine_settings_changed_by_user
|
||||||
data["language"] = Preferences.getInstance().getValue("general/language")
|
data["language"] = Preferences.getInstance().getValue("general/language")
|
||||||
data["os"] = {"type": platform.system(), "version": platform.version()}
|
data["os"] = {"type": platform.system(), "version": platform.version()}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue