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

plugins/edsm: Avoid Tk event_generate() calls during shutdown

This commit is contained in:
Athanasius 2021-01-11 16:45:26 +00:00
parent fb1c9fc034
commit bca0231dfc

View File

@ -598,6 +598,8 @@ def worker() -> None:
if not closing and e['event'] in ('StartUp', 'Location', 'FSDJump', 'CarrierJump'):
# Update main window's system status
this.lastlookup = r
if not config.shutting_down():
# calls update_status in main thread
this.system_link.event_generate('<<EDSMStatus>>', when="tail")