summaryrefslogtreecommitdiff
path: root/lib/update.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-03-15 19:27:24 +0100
committerGitHub <noreply@github.com>2025-03-15 19:27:24 +0100
commitab2e182d1ee683d679c54bab703d3a29f7471d2b (patch)
tree267fa19a9e8e290836eaa807f659799a98b646a0 /lib/update.py
parent89b472d319d7247fb2ff19eb8d264a80baff8df7 (diff)
fix updater (#3583)
Diffstat (limited to 'lib/update.py')
-rw-r--r--lib/update.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/update.py b/lib/update.py
index 4351beb7..e0f6129a 100644
--- a/lib/update.py
+++ b/lib/update.py
@@ -69,9 +69,9 @@ def automatic_version_update(document, file_version, INKSTITCH_SVG_VERSION, warn
if do_update.cancelled is True:
return
# well then, let's update legeacy params
- for element in document.iterdescendants():
- if element.tag in EMBROIDERABLE_TAGS:
- update_legacy_params(document, EmbroideryElement(element), file_version, INKSTITCH_SVG_VERSION)
+ # oddly we have to convert this into a list, otherwise a bunch of elements is missing
+ for node in list(document.iterdescendants(EMBROIDERABLE_TAGS)):
+ update_legacy_params(document, EmbroideryElement(node), file_version, INKSTITCH_SVG_VERSION)
def _update_inkstitch_svg_version(svg):