mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-30 04:06:39 -05:00
Fixed voice screen failing to load if voice calls were disabled
This commit is contained in:
parent
2bc80d2936
commit
04a09623a9
2 changed files with 36 additions and 32 deletions
|
|
@ -5841,6 +5841,8 @@ class SidebandApp(MDApp):
|
|||
self.voice_screen.screen.ids.identity_hash.text = RNS.hexrep(dial_on_complete, delimit=False)
|
||||
Clock.schedule_once(self.voice_screen.dial_action, 0.25)
|
||||
|
||||
if self.sideband.config["voice_enabled"] == True: self.request_microphone_permission()
|
||||
|
||||
def voice_action(self, sender=None, direction="left", dial_on_complete=None):
|
||||
if self.voice_ready:
|
||||
self.voice_open(direction=direction, dial_on_complete=dial_on_complete)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue