From 0219098d054af7ade6e8461ca5b35a8bd1e50a5e Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Fri, 21 May 2021 11:42:03 +0100 Subject: [PATCH] UI Suit: Keep line hidden if Odyssey not detected Else we'll show the line with '<Unknown>' always in Horizons --- EDMarketConnector.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 77ae8772..2f94f660 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -620,6 +620,11 @@ class AppWindow(object): def update_suit_text(self) -> None: """Update the suit text for current type and loadout.""" + if not monitor.state['Odyssey']: + # Odyssey not detected, no text should be set so it will hide + self.suit['text'] = '' + return + if (suit := monitor.state.get('SuitCurrent')) is None: self.suit['text'] = f'<{_("Unknown")}>' return