Work around wx bug - show labels even after switching graphs

This commit is contained in:
DarkPhoenix
2019-08-09 00:34:27 +03:00
parent 676b09720a
commit a881cd2bcc

View File

@@ -147,16 +147,16 @@ class GraphControlPanel(wx.Panel):
# Vectors
self._setVectorDefaults()
if view.srcVectorDef is not None:
self.srcVectorLabel.SetLabel(view.srcVectorDef.label)
self.srcVector.Show(True)
self.srcVectorLabel.Show(True)
self.srcVectorLabel.SetLabel(view.srcVectorDef.label)
else:
self.srcVector.Show(False)
self.srcVectorLabel.Show(False)
if view.tgtVectorDef is not None:
self.tgtVectorLabel.SetLabel(view.tgtVectorDef.label)
self.tgtVector.Show(True)
self.tgtVectorLabel.Show(True)
self.tgtVectorLabel.SetLabel(view.tgtVectorDef.label)
else:
self.tgtVector.Show(False)
self.tgtVectorLabel.Show(False)