Only add GJ/S for cap to the full panel

This commit is contained in:
cncfanatics
2010-08-28 00:24:15 +02:00
parent b2b8ce61db
commit 01c82d8acf

View File

@@ -450,7 +450,8 @@ class StatsPane(wx.Panel):
setattr(self, "label%sCapacitorCapacity" % panel.capitalize(), lbl)
hbox.Add(lbl, 0, wx.ALIGN_LEFT)
hbox.Add(wx.StaticText(parent, wx.ID_ANY, " GJ"), 0, wx.ALIGN_LEFT)
if panel == "full":
hbox.Add(wx.StaticText(parent, wx.ID_ANY, " GJ"), 0, wx.ALIGN_LEFT)
hbox = wx.BoxSizer(wx.HORIZONTAL)
box.Add(hbox, 0, wx.ALIGN_LEFT)