mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 05:20:36 +01:00
PTT hide on unsupported platforms
This commit is contained in:
parent
b9d963733f
commit
04f20cc4fd
@ -214,10 +214,13 @@ class Messages():
|
|||||||
layout.bind(minimum_height=layout.setter('height'))
|
layout.bind(minimum_height=layout.setter('height'))
|
||||||
self.list = layout
|
self.list = layout
|
||||||
|
|
||||||
if self.ptt_enabled:
|
if RNS.vendor.platformutils.is_darwin() or RNS.vendor.platformutils.is_windows():
|
||||||
self.hide_widget(self.ids.message_ptt, False)
|
|
||||||
else:
|
|
||||||
self.hide_widget(self.ids.message_ptt, True)
|
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()
|
c_ts = time.time()
|
||||||
if len(self.new_messages) > 0:
|
if len(self.new_messages) > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user