Move "graphs enabled" variable to top of graphs module
This commit is contained in:
@@ -37,7 +37,7 @@ import gui.fitCommands as cmd
|
||||
import gui.globalEvents as GE
|
||||
from eos.config import gamedata_date, gamedata_version
|
||||
from eos.modifiedAttributeDict import ModifiedAttributeDict
|
||||
from graphs.gui import GraphFrame
|
||||
from graphs import GraphFrame
|
||||
from gui.additionsPane import AdditionsPane
|
||||
from gui.bitmap_loader import BitmapLoader
|
||||
from gui.builtinMarketBrowser.events import ItemSelected
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
import wx
|
||||
|
||||
import config
|
||||
import graphs
|
||||
from service.character import Character
|
||||
from service.fit import Fit
|
||||
from graphs.gui import canvasPanel as graphCanvasPanel
|
||||
import gui.globalEvents as GE
|
||||
from gui.bitmap_loader import BitmapLoader
|
||||
|
||||
@@ -101,7 +101,7 @@ class MainMenuBar(wx.MenuBar):
|
||||
graphFrameItem = wx.MenuItem(fitMenu, self.graphFrameId, "&Graphs\tCTRL+G")
|
||||
graphFrameItem.SetBitmap(BitmapLoader.getBitmap("graphs_small", "gui"))
|
||||
fitMenu.Append(graphFrameItem)
|
||||
if not graphCanvasPanel.graphFrame_enabled:
|
||||
if not graphs.graphFrame_enabled:
|
||||
self.Enable(self.graphFrameId, False)
|
||||
self.ignoreRestrictionItem = fitMenu.Append(self.toggleIgnoreRestrictionID, "Disable Fitting Re&strictions")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user