From b5bb9657d87f475cba16f51c5da0c9526d31230f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 15 Jan 2023 21:54:02 +0000 Subject: [PATCH] eddn: Move `tracking_ui_update()` nearer top of `journal_entry()` With the tracking now being in monitor.py this needs to be ASAP after the local copies of the tracking have been updated. Below the possible `this.status_body_name` blanking, in case that's hit. --- plugins/eddn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index ab7d2fa3..ace4f27f 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -2224,6 +2224,8 @@ def journal_entry( # noqa: C901, CCR001 if entry['MusicTrack'] == 'MainMenu': this.status_body_name = None + tracking_ui_update() + # Events with their own EDDN schema if config.get_int('output') & config.OUT_EDDN_SEND_NON_STATION and not state['Captain']: @@ -2409,8 +2411,6 @@ def journal_entry( # noqa: C901, CCR001 logger.debug(f'Failed exporting {entry["event"]}', exc_info=e) return str(e) - tracking_ui_update() - return None