More work on getting fittings form a character via ESI. It's starting to be come a pain working with this client with having to background it until it initializes. Thinking about rolling my own, considering we only need a few calls and not a whole package.

This commit is contained in:
blitzmann
2018-02-07 02:07:42 -05:00
parent eea8019593
commit e77dddc15b
4 changed files with 29 additions and 11 deletions

View File

@@ -126,11 +126,6 @@ class CrestFittings(wx.Frame):
event.Skip()
def getActiveCharacter(self):
sCrest = Crest.getInstance()
if sCrest.settings.get('mode') == CrestModes.IMPLICIT:
return sCrest.implicitCharacter.ID
selection = self.charChoice.GetCurrentSelection()
return self.charChoice.GetClientData(selection) if selection is not None else None

View File

@@ -166,6 +166,8 @@ class MainFrame(wx.Frame):
i = wx.Icon(BitmapLoader.getBitmap("pyfa", "gui"))
self.SetIcon(i)
sCrest = Crest()
# Create the layout and windows
mainSizer = wx.BoxSizer(wx.HORIZONTAL)