Invalid minimizebutton state when reload PLCParams fixed
authorlbessard
Mon, 23 Mar 2009 16:38:11 +0100
changeset 324 01a7b01bf896
parent 323 9f07f0d429df
child 325 f2604900bf25
Invalid minimizebutton state when reload PLCParams fixed
Beremiz.py
--- a/Beremiz.py	Mon Mar 23 16:26:13 2009 +0100
+++ b/Beremiz.py	Mon Mar 23 16:38:11 2009 +0100
@@ -616,6 +616,7 @@
                   size=wx.Size(24, 24), style=wx.NO_BORDER)
             make_genbitmaptogglebutton_flat(minimizebutton)
             minimizebutton.SetBitmapSelected(wx.Bitmap(Bpath( 'images', 'Minimize.png')))
+            minimizebutton.SetToggle(self.PluginInfos[self.PluginRoot]["middle_visible"])
             plcwindowbuttonsizer.AddWindow(minimizebutton, 0, border=5, flag=wx.ALL)
             
 #            if len(self.PluginRoot.PlugChildsTypes) > 0: