1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Don't send credits to EDSM at startup

Data may be out of date.
This commit is contained in:
Jonathan Harris 2016-11-03 01:52:22 +00:00
parent 7093f45191
commit a2c9383a1f

View File

@ -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