Implement version upgrade 2.7 to 3.0

The theme 'cura' was renamed to 'cura-light', so that needs to be updated in the user's preferences.

Contributes to issue CURA-4148.
This commit is contained in:
Ghostkeeper 2017-08-30 13:49:27 +02:00
parent 5b36869b32
commit d929359d77
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
3 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
from . import VersionUpgrade27to30
upgrade = VersionUpgrade27to30.VersionUpgrade27to30()
def getMetaData():
return {
"version_upgrade": {
# From To Upgrade function
("preferences", 4000002): ("preferences", 5000002, upgrade.upgradePreferences),
},
"sources": {
"preferences": {
"get_version": upgrade.getCfgVersion,
"location": {"."}
},
}
}
def register(app):
return { "version_upgrade": upgrade }