From: nickthetait Date: Fri, 14 Aug 2015 23:57:43 +0000 (-0600) Subject: Refactor variable X-Git-Tag: lulzbot-15.02.1-2.02~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6a4efc82541d665f21ed05b32de3dd0ce88662f1;p=cura.git Refactor variable --- diff --git a/Cura/util/profile.py b/Cura/util/profile.py index aa8a213d..40f923bd 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -1377,8 +1377,8 @@ def performVersionUpgrade(): putMachineSetting('machine_type', 'lulzbot_TAZ_4', n) machine_type = getMachineSetting('machine_type', n) - if machine_type.startswith('lulzbot_') and \ - getMachineSetting('toolhead', n) == 'Default': + isLulzBot = machine_type.startswith('lulzbot_') + if isLulzBot and getMachineSetting('toolhead', n) == 'Default': if machine_type == 'lulzbot_mini': putMachineSetting('toolhead', 'Single Extruder V2', n) putMachineSetting('toolhead_shortname', '', n)