mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:49:10 +08:00
Merge pull request #3 from thopiekar/master-CURA-1615
GCodeProfileReader: Removing useless containername
This commit is contained in:
commit
c9ec81cbe2
@ -74,7 +74,7 @@ class GCodeProfileReader(ProfileReader):
|
|||||||
Logger.log("i", "Serialized the following from %s: %s" %(file_name, repr(serialized)))
|
Logger.log("i", "Serialized the following from %s: %s" %(file_name, repr(serialized)))
|
||||||
|
|
||||||
# Create an empty profile - the id will be changed later
|
# Create an empty profile - the id will be changed later
|
||||||
profile = InstanceContainer("G-code-imported-profile")
|
profile = InstanceContainer("")
|
||||||
profile.addMetaDataEntry("type", "quality")
|
profile.addMetaDataEntry("type", "quality")
|
||||||
try:
|
try:
|
||||||
profile.deserialize(serialized)
|
profile.deserialize(serialized)
|
||||||
@ -87,4 +87,4 @@ class GCodeProfileReader(ProfileReader):
|
|||||||
profile.setName(new_name)
|
profile.setName(new_name)
|
||||||
profile._id = new_name
|
profile._id = new_name
|
||||||
|
|
||||||
return profile
|
return profile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user