mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Fix setting weight of upgraded profile
self._weight sometimes becomes an int, and ConfigParser does not like ints.
This commit is contained in:
parent
53ce8bc4c9
commit
86ad1777af
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class Profile:
|
|||
else:
|
||||
config.set("metadata", "type", "quality")
|
||||
if self._weight:
|
||||
config.set("metadata", "weight", self._weight)
|
||||
config.set("metadata", "weight", str(self._weight))
|
||||
if self._machine_variant_name:
|
||||
if self._machine_type_id:
|
||||
config.set("metadata", "variant", VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateVariant(self._machine_variant_name, self._machine_type_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue