Skip to content

Commit

Permalink
Update char list when new character gets added
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Apr 17, 2020
1 parent c0c20cc commit 091ee87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/esiFittings.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,13 @@ def ssoLogin(self, event):
sChar = Character.getInstance()
# Update existing pyfa character, if it doesn't exist - create new
char = sChar.getCharacter(event.character.characterName)
newChar = False
if char is None:
char = sChar.new(event.character.characterName)
newChar = True
char.setSsoCharacter(event.character, config.getClientSecret())
sChar.apiFetch(char.ID, APIView.fetchCallback)
wx.PostEvent(self.mainFrame, GE.CharListUpdated())
event.Skip()

def kbEvent(self, event):
Expand Down

0 comments on commit 091ee87

Please sign in to comment.