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

Get system status from results of StartUp pseudo-event

Fixes #277
This commit is contained in:
Jonathan Harris 2018-01-07 19:04:53 +00:00
parent 8083b1978d
commit e2161cd108

View File

@ -310,7 +310,7 @@ def worker():
else:
# Update main window's system status
for i in range(len(pending) - 1, -1, -1):
if pending[i]['event'] in ['Location', 'FSDJump']:
if pending[i]['event'] in ['StartUp', 'Location', 'FSDJump']:
this.lastlookup = reply['events'][i]
this.system.event_generate('<<EDSMStatus>>', when="tail") # calls update_status in main thread
break