PTT hide on unsupported platforms

This commit is contained in:
Mark Qvist 2024-09-09 02:10:14 +02:00
parent b9d963733f
commit 04f20cc4fd
1 changed files with 6 additions and 3 deletions

View File

@ -214,6 +214,9 @@ class Messages():
layout.bind(minimum_height=layout.setter('height')) layout.bind(minimum_height=layout.setter('height'))
self.list = layout self.list = layout
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: if self.ptt_enabled:
self.hide_widget(self.ids.message_ptt, False) self.hide_widget(self.ids.message_ptt, False)
else: else: