Fixed a clear case of brain failure (Don't try to show graphFrame window if MPL isn't installed)
This commit is contained in:
@@ -392,12 +392,10 @@ class MainFrame(wx.Frame):
|
|||||||
self.waitDialog.Destroy()
|
self.waitDialog.Destroy()
|
||||||
|
|
||||||
def openGraphFrame(self, event):
|
def openGraphFrame(self, event):
|
||||||
if not gui.graphFrame.enabled:
|
|
||||||
return
|
|
||||||
|
|
||||||
if not self.graphFrame:
|
if not self.graphFrame:
|
||||||
self.graphFrame = GraphFrame(self)
|
self.graphFrame = GraphFrame(self)
|
||||||
self.graphFrame.Show()
|
if gui.graphFrame.enabled:
|
||||||
|
self.graphFrame.Show()
|
||||||
else:
|
else:
|
||||||
self.graphFrame.SetFocus()
|
self.graphFrame.SetFocus()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user