GangView is not aware of changes to booster fits
This commit is contained in:
@@ -141,6 +141,7 @@ class GangView ( ScrolledPanel ):
|
||||
self.mainFrame.Bind(GE.CHAR_LIST_UPDATED, self.RefreshCharacterList)
|
||||
self.mainFrame.Bind(GE.FIT_CHANGED, self.fitSelected)
|
||||
self.mainFrame.Bind(gui.shipBrowser.EVT_FIT_RENAMED, self.fitRenamed)
|
||||
self.mainFrame.Bind(gui.shipBrowser.BOOSTER_LIST_UPDATED, self.RefreshBoosterFits)
|
||||
|
||||
for stBooster in self.stBoosters:
|
||||
stBooster.Bind(wx.EVT_LEFT_DCLICK, self.RemoveBooster)
|
||||
@@ -346,6 +347,10 @@ class GangView ( ScrolledPanel ):
|
||||
sFit.recalc(boostee, withBoosters=True)
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=activeFitID))
|
||||
|
||||
def RefreshBoosterFits(self, event):
|
||||
print "refresh booster lists"
|
||||
pass
|
||||
|
||||
def RefreshCharacterList(self, event = None):
|
||||
cChar = service.Character.getInstance()
|
||||
charList = cChar.getCharacterList()
|
||||
|
||||
@@ -23,6 +23,8 @@ FitRenamed, EVT_FIT_RENAMED = wx.lib.newevent.NewEvent()
|
||||
FitSelected, EVT_FIT_SELECTED = wx.lib.newevent.NewEvent()
|
||||
FitRemoved, EVT_FIT_REMOVED = wx.lib.newevent.NewEvent()
|
||||
|
||||
BoosterListUpdated, BOOSTER_LIST_UPDATED = wx.lib.newevent.NewEvent()
|
||||
|
||||
Stage1Selected, EVT_SB_STAGE1_SEL = wx.lib.newevent.NewEvent()
|
||||
Stage2Selected, EVT_SB_STAGE2_SEL = wx.lib.newevent.NewEvent()
|
||||
Stage3Selected, EVT_SB_STAGE3_SEL = wx.lib.newevent.NewEvent()
|
||||
@@ -1450,7 +1452,7 @@ class FitItem(SFItem.SFBrowserItem):
|
||||
self.fitBooster = not self.fitBooster
|
||||
|
||||
self.toggleItem.SetItemLabel(self.toggleItemLabels[self.fitBooster])
|
||||
|
||||
wx.PostEvent(self.mainFrame, BoosterListUpdated())
|
||||
event.Skip()
|
||||
|
||||
def OnContextMenu(self, event):
|
||||
|
||||
Reference in New Issue
Block a user