From 9ba1fbdcd2df2a5fc8b97ffdba86e167f0a9dc81 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 2 May 2017 01:57:45 +0100 Subject: [PATCH] Fix for "Invalid Credentials" on new credentials --- EDMarketConnector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 9a6fbb48..509eea9a 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -300,7 +300,7 @@ class AppWindow: except: if __debug__: print_exc() - self.postprefs() # Companion login happens in callback from monitor + self.postprefs(False) # Companion login happens in callback from monitor if keyring.get_keyring().priority < 1: self.status['text'] = 'Warning: Storing passwords as text' # Shouldn't happen unless no secure storage on Linux @@ -310,7 +310,7 @@ class AppWindow: self.status['text'] = 'Error: Is another copy of this app already running?' # Shouldn't happen - don't bother localizing # callback after the Preferences dialog is applied - def postprefs(self): + def postprefs(self, dologin=True): self.set_labels() # in case language has changed # (Re-)install hotkey monitoring @@ -319,6 +319,8 @@ class AppWindow: # (Re-)install log monitoring if not monitor.start(self.w): self.status['text'] = 'Error: Check %s' % _('E:D journal file location') # Location of the new Journal file in E:D 2.2 + if dologin: + self.login() # Login if not already logged in with this Cmdr # set main window labels, e.g. after language change def set_labels(self):