Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/addon/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ def maybe_migrate_config(conf: ConfigManager) -> None:
v2_to_v3(conf)
elif version < "3.0":
v2_to_v3(conf)
else:
return

if version != version_string:
conf["version.major"] = int(version_string.split(".")[0])
conf["version.minor"] = int(version_string.split(".")[1])
conf.save()
conf["version.major"] = int(version_string.split(".")[0])
conf["version.minor"] = int(version_string.split(".")[1])
conf.save()

# some versions of v2 may be incorrectly in -1.-1
def detect_v2(conf: ConfigManager) -> bool:
Expand Down