From: Youness Alaoui Date: Tue, 19 May 2015 20:19:26 +0000 (-0400) Subject: Fix previous commit and disable print one at a time option for lulzbot printers X-Git-Tag: lulzbot-15.02.1-1.01~22 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=026dfc3cde8004105de9a401777b6ef18227aff9;p=cura.git Fix previous commit and disable print one at a time option for lulzbot printers --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index b98a2f76..23f79c45 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -152,8 +152,8 @@ class mainWindow(wx.Frame): toolsMenu.AppendSeparator() self.allAtOnceItem = toolsMenu.Append(-1, _("Print all at once"), kind=wx.ITEM_RADIO) self.Bind(wx.EVT_MENU, self.onOneAtATimeSwitch, self.allAtOnceItem) - #self.oneAtATime = toolsMenu.Append(-1, _("Print one at a time"), kind=wx.ITEM_RADIO) - #self.Bind(wx.EVT_MENU, self.onOneAtATimeSwitch, self.oneAtATime) + self.oneAtATime = toolsMenu.Append(-1, _("Print one at a time"), kind=wx.ITEM_RADIO) + self.Bind(wx.EVT_MENU, self.onOneAtATimeSwitch, self.oneAtATime) if profile.getPreference('oneAtATime') == 'True': self.oneAtATime.Check(True) else: @@ -384,9 +384,19 @@ class mainWindow(wx.Frame): profile.getMachineSetting('machine_type').startswith('lulzbot_'): self.bedLevelWizardMenuItem.Enable(False) self.headOffsetWizardMenuItem.Enable(False) + self.oneAtATime.Enable(False) + self.allAtOnceItem.Check(True) + # Force the gantry height to 0 so we don't get a "info: print one at a time re-enabled" + # notification since we're disabling that option + profile.putMachineSetting('extruder_head_size_height', '0.0') else: self.bedLevelWizardMenuItem.Enable(True) self.headOffsetWizardMenuItem.Enable(False) + self.oneAtATime.Enable(True) + if profile.getPreference('oneAtATime') == 'True': + self.oneAtATime.Check(True) + else: + self.allAtOnceItem.Check(True) if int(profile.getMachineSetting('extruder_amount')) < 2: self.headOffsetWizardMenuItem.Enable(False) self.scene.updateProfileToControls()