mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 17:35:58 +08: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
@ -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…
x
Reference in New Issue
Block a user