From 7577de7c432e0aa7fe626535c3f2bc9b083bc722 Mon Sep 17 00:00:00 2001 From: daid Date: Mon, 28 Oct 2013 07:57:43 +0100 Subject: [PATCH] Enable retraction when selecting the UM2. Fix the reset-profile which clears out the machine settings right now. --- Cura/gui/configWizard.py | 2 ++ Cura/util/profile.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 8b6b1b23..16452b46 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -345,6 +345,7 @@ class MachineSelectPage(InfoPage): profile.putMachineSetting('has_heated_bed', 'True') profile.putMachineSetting('gcode_flavor', 'UltiGCode') profile.putProfileSetting('nozzle_size', '0.4') + profile.putProfileSetting('retraction_enable', 'True') profile.putMachineSetting('extruder_head_size_min_x', '40.0') profile.putMachineSetting('extruder_head_size_min_y', '10.0') profile.putMachineSetting('extruder_head_size_max_x', '60.0') @@ -373,6 +374,7 @@ class MachineSelectPage(InfoPage): profile.putMachineSetting('gcode_flavor', 'RepRap (Marlin/Sprinter)') profile.putPreference('startMode', 'Normal') profile.putProfileSetting('nozzle_size', '0.5') + profile.putProfileSetting('retraction_enable', 'True') profile.checkAndUpdateMachineName() profile.putProfileSetting('wall_thickness', float(profile.getProfileSetting('nozzle_size')) * 2) if self.SubmitUserStats.GetValue(): diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 07703208..58075d88 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -503,7 +503,7 @@ def resetProfile(): #Read a configuration file as global config global settingsList for set in settingsList: - if set.isPreference(): + if not set.isProfile(): continue set.setValue(set.getDefault()) @@ -516,6 +516,7 @@ def resetProfile(): putProfileSetting('retraction_enable', 'True') else: putProfileSetting('nozzle_size', '0.5') + putProfileSetting('retraction_enable', 'True') def setProfileFromString(options): options = base64.b64decode(options) -- 2.30.2