mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 17:55:52 +08: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
@ -69,7 +69,15 @@ class SliceInfo(Extension):
|
||||
else:
|
||||
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["os"] = {"type": platform.system(), "version": platform.version()}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user