From a2c9383a1f50d014a043426094645cf26bd217bc Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Thu, 3 Nov 2016 01:52:22 +0000 Subject: [PATCH] Don't send credits to EDSM at startup Data may be out of date. --- EDMarketConnector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 2c51b929..1cc3b5e5 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -522,8 +522,8 @@ class AppWindow: self.status['text'] = _('Sending data to EDSM...') self.w.update_idletasks() try: - # Send credits to EDSM on startup - if entry['event'] in [None, 'LoadGame']: + # Send credits to EDSM on new game (but not on startup - data might be old) + if entry['event'] == 'LoadGame': self.edsm.setcredits(monitor.credits) # Send rank info to EDSM on startup or change