From 427a238dee5ddf957b0fc8b683e67e98e03c2235 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 9 Jan 2023 11:34:58 +0000 Subject: [PATCH] eddn: Remove un-necessary 'leavebody' state clearing This is now handled in monitor.py, and *this* code explicitly sets the 'this' values to those in `state` as passed in. --- plugins/eddn.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 0a20bdfc..f76274a8 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -2220,14 +2220,6 @@ def journal_entry( # noqa: C901, CCR001 # Trigger a send/retry of pending EDDN messages this.eddn.parent.after(this.eddn.REPLAY_DELAY, this.eddn.sender.queue_check_and_send, False) - elif event_name == 'leavebody': - # NB: **NOT** SupercruiseEntry, because we won't get a fresh - # ApproachBody if we don't leave Orbital Cruise and land again. - # *This* is triggered when you go above Orbital Cruise altitude. - # Status.json BodyName clears when the OC/Glide HUD is deactivated. - this.body_name = None - this.body_id = None - elif event_name == 'music': if entry['MusicTrack'] == 'MainMenu': this.body_name = None