1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-19 10:27:38 +03:00

Reset displayed system on startup.

This commit is contained in:
Jonathan Harris 2017-03-11 17:24:28 +00:00
parent e297808243
commit dfa87f40d3

View File

@ -598,10 +598,11 @@ class AppWindow:
self.station['text'] = monitor.station or (EDDB.system(monitor.system) and self.STATION_UNDOCKED or '')
if system_changed or station_changed:
self.status['text'] = ''
if system_changed:
if self.system['text'] != monitor.system:
self.system['text'] = monitor.system or ''
self.system['image'] = ''
self.edsm.link(monitor.system)
if monitor.system:
self.edsm.link(monitor.system)
self.w.update_idletasks()
# Send interesting events to EDSM