for line in f:
if line.startswith(';CURA_PROFILE_STRING:'):
profile.setProfileFromString(line[line.find(':')+1:].strip())
- if ';{profile_string}' not in profile.getProfileSetting('end.gcode'):
- profile.putProfileSetting('end.gcode', profile.getProfileSetting('end.gcode') + '\n;{profile_string}')
+ if ';{profile_string}' not in profile.getAlterationFile('end.gcode'):
+ profile.setAlterationFile('end.gcode', profile.getAlterationFile('end.gcode') + '\n;{profile_string}')
hasProfile = True
if hasProfile:
self.updateProfileToAllControls()