From: Youness Alaoui Date: Wed, 3 Jun 2015 21:13:19 +0000 (-0400) Subject: Fix options box disappearing if no options available X-Git-Tag: lulzbot-15.02.1-2.01~55^2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=be151532070b8aa75b3d1684b6c196cfb5df733a;p=cura.git Fix options box disappearing if no options available --- diff --git a/Cura/gui/simpleMode.py b/Cura/gui/simpleMode.py index 32cfe3b8..cced2675 100644 --- a/Cura/gui/simpleMode.py +++ b/Cura/gui/simpleMode.py @@ -69,8 +69,8 @@ class simpleModePanel(wx.Panel): sizer.Add(self.printTypePanel, (1,0), border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) - sb = wx.StaticBox(self, label=_("Other options:")) - boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL) + self.printOptionsBox = wx.StaticBox(self, label=_("Other options:")) + boxsizer = wx.StaticBoxSizer(self.printOptionsBox, wx.VERTICAL) boxsizer.SetMinSize((100, 20)) sizer.Add(boxsizer, (2,0), border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP) self.printOptionsSizer = boxsizer @@ -157,8 +157,7 @@ class simpleModePanel(wx.Panel): # Decide if we show the profile panel or not # The always_visible doesn't make sense for options since they are checkboxes, and not radio buttons - if len(self._print_other_options) < 1: - self.printOptionsPanel.Show(False) + self.printOptionsBox.Show(len(self._print_other_options) > 0) # Add profiles to the UI for button in self._print_other_options: