Fixed saving of machines again

This commit is contained in:
Jaime van Kessel 2016-06-05 12:53:41 +02:00
parent 8b294fbe97
commit cb742cf7ce

View file

@ -271,7 +271,7 @@ class CuraApplication(QtApplication):
file_name = urllib.parse.quote_plus(stack.getId()) + ".stack.cfg" file_name = urllib.parse.quote_plus(stack.getId()) + ".stack.cfg"
stack_type = stack.getMetaDataEntry("type", None) stack_type = stack.getMetaDataEntry("type", None)
path = None path = None
if not stack_type: if stack_type == "machine":
path = Resources.getStoragePath(self.ResourceTypes.MachineStack, file_name) path = Resources.getStoragePath(self.ResourceTypes.MachineStack, file_name)
elif stack_type == "extruder": elif stack_type == "extruder":
path = Resources.getStoragePath(self.ResourceTypes.ExtruderStack, file_name) path = Resources.getStoragePath(self.ResourceTypes.ExtruderStack, file_name)