diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-15 19:27:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 19:27:24 +0100 |
| commit | ab2e182d1ee683d679c54bab703d3a29f7471d2b (patch) | |
| tree | 267fa19a9e8e290836eaa807f659799a98b646a0 /lib/extensions | |
| parent | 89b472d319d7247fb2ff19eb8d264a80baff8df7 (diff) | |
fix updater (#3583)
Diffstat (limited to 'lib/extensions')
| -rw-r--r-- | lib/extensions/update_svg.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/extensions/update_svg.py b/lib/extensions/update_svg.py index d51c1fa1..40753f3e 100644 --- a/lib/extensions/update_svg.py +++ b/lib/extensions/update_svg.py @@ -18,15 +18,15 @@ class UpdateSvg(InkstitchExtension): # 3 -> v.3.2.0 May2025 def effect(self): + # set the file version to the update_from value, so that the updater knows where to start from + # the updater will then reset it to the current version after the update has finished + metadata = self.get_inkstitch_metadata() + metadata['inkstitch_svg_version'] = self.options.update_from + if not self.svg.selection: update_inkstitch_document(self.document, warn_unversioned=False) else: - # set the file version to the update_from value, so that the updater knows where to start from - # the updater will then reset it to the current version after the update has finished - metadata = self.get_inkstitch_metadata() - metadata['inkstitch_svg_version'] = self.options.update_from - - update_inkstitch_document(self.document, self.get_selection(), warn_unversioned=False) + update_inkstitch_document(self.document, self.get_selection(), warn_unversioned=False) def get_selection(self): selection = [] |
