chiark / gitweb /
Refactor variable
authornickthetait <tait@alephobjects.com>
Fri, 14 Aug 2015 23:57:43 +0000 (17:57 -0600)
committernickthetait <tait@alephobjects.com>
Sat, 15 Aug 2015 00:24:18 +0000 (18:24 -0600)
Cura/util/profile.py

index aa8a213db5ac9e4ce36063e986aeef0b4120a3a2..40f923bde39a72c13a7f3398cabc46a798c1314c 100644 (file)
@@ -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)