mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Remove preferences upgrade from 2.1->2.2
No preferences will need to be upgraded. Contributes to issue CURA-844.
This commit is contained in:
parent
b643fe8fd0
commit
242559bd7e
3 changed files with 1 additions and 36 deletions
|
@ -9,7 +9,7 @@ from . import Profile #To upgrade profiles.
|
|||
|
||||
## Converts configuration from Cura 2.1's file formats to Cura 2.2's.
|
||||
#
|
||||
# It converts the machine instances, preferences and profiles.
|
||||
# It converts the machine instances and profiles.
|
||||
class VersionUpgrade21to22(VersionUpgrade):
|
||||
## Converts machine instances from format version 1 to version 2.
|
||||
#
|
||||
|
@ -22,17 +22,6 @@ class VersionUpgrade21to22(VersionUpgrade):
|
|||
return None
|
||||
return machine_instance.exportVersion2()
|
||||
|
||||
## Converts preferences from format version 2 to version 3.
|
||||
#
|
||||
# \param serialised The serialised preferences file in version 2.
|
||||
# \return The serialised preferences file in version 3, or None if the
|
||||
# input was not of the correct format.
|
||||
def upgradePreferences(self, serialised):
|
||||
preferences = Preferences.importVersion2(serialised)
|
||||
if not preferences: #Invalid file format.
|
||||
return None
|
||||
return preferences.exportVersion3()
|
||||
|
||||
## Converts profiles from format version 1 to version 2.
|
||||
#
|
||||
# \param serialised The serialised profile in version 1.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue