From ab2e182d1ee683d679c54bab703d3a29f7471d2b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 15 Mar 2025 19:27:24 +0100 Subject: fix updater (#3583) --- lib/extensions/update_svg.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/extensions') 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 = [] -- cgit v1.2.3