1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Fix for system blob not disappearing on new game

This commit is contained in:
Jonathan Harris 2017-04-28 13:38:16 +01:00
parent 5ee541ae68
commit f95e00b0c3
2 changed files with 3 additions and 4 deletions

View File

@ -587,9 +587,8 @@ class AppWindow:
self.station['text'] = monitor.station or (EDDB.system(monitor.system) and self.STATION_UNDOCKED or '')
if self.system['text'] != monitor.system:
self.system['text'] = monitor.system or ''
self.system['image'] = ''
if monitor.system:
self.edsm.link(monitor.system)
self.edsm.link(monitor.system)
self.edsmpoll()
if entry['event'] in ['Undocked', 'StartJump', 'SetUserShipName', 'ShipyardBuy', 'ShipyardSell', 'ShipyardSwap', 'ModuleBuy', 'ModuleSell', 'MaterialCollected', 'MaterialDiscarded', 'ScientificResearch', 'EngineerCraft', 'Synthesis']:
self.status['text'] = '' # Periodically clear any old error
self.w.update_idletasks()

View File

@ -107,7 +107,7 @@ class EDSM:
# Just set link without doing a lookup
def link(self, system_name):
self.cancel_lookup()
if system_name in self.FAKE:
if not system_name or system_name in self.FAKE:
self.result = { 'img': '', 'url': None, 'done': True, 'uncharted': False }
else:
self.result = { 'img': '', 'url': 'https://www.edsm.net/show-system?systemName=%s' % urllib2.quote(system_name), 'done': True, 'uncharted': False }