From 04f20cc4fd56837ad8cb4b2a8129122673eb5922 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 9 Sep 2024 02:10:14 +0200 Subject: [PATCH] PTT hide on unsupported platforms --- sbapp/ui/messages.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sbapp/ui/messages.py b/sbapp/ui/messages.py index b905b72..15a08ba 100644 --- a/sbapp/ui/messages.py +++ b/sbapp/ui/messages.py @@ -214,10 +214,13 @@ class Messages(): layout.bind(minimum_height=layout.setter('height')) self.list = layout - if self.ptt_enabled: - self.hide_widget(self.ids.message_ptt, False) - else: + if RNS.vendor.platformutils.is_darwin() or RNS.vendor.platformutils.is_windows(): self.hide_widget(self.ids.message_ptt, True) + else: + if self.ptt_enabled: + self.hide_widget(self.ids.message_ptt, False) + else: + self.hide_widget(self.ids.message_ptt, True) c_ts = time.time() if len(self.new_messages) > 0: