From 6a4efc82541d665f21ed05b32de3dd0ce88662f1 Mon Sep 17 00:00:00 2001 From: nickthetait Date: Fri, 14 Aug 2015 17:57:43 -0600 Subject: [PATCH] Refactor variable --- Cura/util/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2