Update the character selection dropdown when the character editor is

used
This commit is contained in:
cncfanatics
2010-09-15 09:59:17 +02:00
parent 9a50f19002
commit 8b03e831ea
2 changed files with 15 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ class CharacterSelection(wx.Panel):
self.refreshCharacterList()
self.Bind(wx.EVT_CHOICE, self.charChanged)
self.mainFrame.Bind(ce.CHAR_LIST_UPDATED, self.refreshCharacterList)
def getActiveCharacter(self):
selection = self.charChoice.GetCurrentSelection()
@@ -60,6 +61,9 @@ class CharacterSelection(wx.Panel):
if activeChar is None:
choice.SetSelection(all0)
if event is not None:
event.Skip()
def charChanged(self, event):
fitID = self.mainFrame.fitMultiSwitch.getActiveFit()
charID = self.getActiveCharacter()