mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-09 11:52:27 +03:00
plugins/edsm: Avoid Tk event_generate() calls during shutdown
# Conflicts: # plugins/edsm.py
This commit is contained in:
parent
e7a7314c1a
commit
db48b6eaad
@ -622,9 +622,8 @@ def worker() -> None:
|
|||||||
if not closing and e['event'] in ('StartUp', 'Location', 'FSDJump', 'CarrierJump'):
|
if not closing and e['event'] in ('StartUp', 'Location', 'FSDJump', 'CarrierJump'):
|
||||||
# Update main window's system status
|
# Update main window's system status
|
||||||
this.lastlookup = r
|
this.lastlookup = r
|
||||||
|
# calls update_status in main thread
|
||||||
if not config.shutting_down:
|
if not config.shutting_down:
|
||||||
# calls update_status in main thread
|
|
||||||
this.system_link.event_generate('<<EDSMStatus>>', when="tail")
|
this.system_link.event_generate('<<EDSMStatus>>', when="tail")
|
||||||
|
|
||||||
if r['msgnum'] // 100 != 1:
|
if r['msgnum'] // 100 != 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user