From fc34d023b6db4255504d16e7d4317caccb695003 Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Sun, 17 Oct 2021 14:10:30 +0100 Subject: [PATCH] EDDN: tracking_ui_update(): check if this UI bit actually active --- plugins/eddn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index e6aa9431..841cbead 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -995,7 +995,10 @@ def plugin_app(parent: tk.Tk) -> Optional[tk.Frame]: def tracking_ui_update() -> None: - """Update the Tracking UI with current data.""" + """Update the Tracking UI with current data, if required.""" + if not config.eddn_tracking_ui: + return + this.ui_j_body_name['text'] = '≪None≫' if this.body_name is not None: this.ui_j_body_name['text'] = this.body_name