#If we do not have preferences yet, try to load it from a previous Cura install
if profile.getMachineSetting('machine_type') == 'unknown':
#If we do not have preferences yet, try to load it from a previous Cura install
if profile.getMachineSetting('machine_type') == 'unknown':