chiark / gitweb /
Use same quickprint settings for lulzbot_TAZ and lulzbot_TAZ_4
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 6 Mar 2015 17:09:54 +0000 (12:09 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 6 Mar 2015 17:10:07 +0000 (12:10 -0500)
Fixes issue #89

Cura/gui/simpleMode.py

index 2879020eadddb058057254e0cfd50db7323a54c1..903f0af8f59668dc1a722221561601caba1c67f2 100644 (file)
@@ -18,6 +18,14 @@ class simpleModePanel(wx.Panel):
                self._print_material_options = []
                self._print_other_options = []
 
+               # This is a hack around an issue where the machine type in the wizard
+               # changed and causes some people to have it set to lulzbot_TAZ and some
+               # people have it set to lulzbot_TAZ_4.
+               # To avoid duplicating the custom settings overrides, we just change the
+               # machine_type instead.
+               if profile.getMachineSetting('machine_type') == 'lulzbot_TAZ':
+                       profile.putMachineSetting('machine_type', 'lulzbot_TAZ_4')
+
                printTypePanel = wx.Panel(self)
                for filename in resources.getSimpleModeProfiles():
                        cp = configparser.ConfigParser()