Fixes for #952
This commit is contained in:
@@ -954,7 +954,7 @@ class MainFrame(wx.Frame):
|
|||||||
|
|
||||||
if graphFrame.graphFrame_enabled:
|
if graphFrame.graphFrame_enabled:
|
||||||
self.graphFrame.Show()
|
self.graphFrame.Show()
|
||||||
else:
|
elif graphFrame.graphFrame_enabled:
|
||||||
self.graphFrame.SetFocus()
|
self.graphFrame.SetFocus()
|
||||||
|
|
||||||
def openWXInspectTool(self, event):
|
def openWXInspectTool(self, event):
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import wx
|
|||||||
|
|
||||||
import config
|
import config
|
||||||
from service.character import Character
|
from service.character import Character
|
||||||
|
import gui.graphFrame
|
||||||
import gui.globalEvents as GE
|
import gui.globalEvents as GE
|
||||||
from gui.bitmapLoader import BitmapLoader
|
from gui.bitmapLoader import BitmapLoader
|
||||||
|
|
||||||
@@ -116,6 +117,9 @@ class MainMenuBar(wx.MenuBar):
|
|||||||
graphFrameItem.SetBitmap(BitmapLoader.getBitmap("graphs_small", "gui"))
|
graphFrameItem.SetBitmap(BitmapLoader.getBitmap("graphs_small", "gui"))
|
||||||
windowMenu.AppendItem(graphFrameItem)
|
windowMenu.AppendItem(graphFrameItem)
|
||||||
|
|
||||||
|
if not gui.graphFrame.graphFrame_enabled:
|
||||||
|
self.Enable(self.graphFrameId, False)
|
||||||
|
|
||||||
preferencesShortCut = "CTRL+," if 'wxMac' in wx.PlatformInfo else "CTRL+P"
|
preferencesShortCut = "CTRL+," if 'wxMac' in wx.PlatformInfo else "CTRL+P"
|
||||||
preferencesItem = wx.MenuItem(windowMenu, wx.ID_PREFERENCES, "Preferences\t" + preferencesShortCut)
|
preferencesItem = wx.MenuItem(windowMenu, wx.ID_PREFERENCES, "Preferences\t" + preferencesShortCut)
|
||||||
preferencesItem.SetBitmap(BitmapLoader.getBitmap("preferences_small", "gui"))
|
preferencesItem.SetBitmap(BitmapLoader.getBitmap("preferences_small", "gui"))
|
||||||
|
|||||||
Reference in New Issue
Block a user