From 47ae06e09be42e654722f3ca83c8b779e2c38d09 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Thu, 9 Feb 2023 19:27:02 -0500 Subject: [PATCH] Some UI fixes for first time startup --- MainTab.qml | 7 +++++++ micpermission.mm | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MainTab.qml b/MainTab.qml index 63050e4..9300c29 100644 --- a/MainTab.qml +++ b/MainTab.qml @@ -182,6 +182,7 @@ Item { droidstar.set_slot(_comboSlot.currentIndex); } + visible: false } ComboBox { id: _comboCC @@ -201,6 +202,7 @@ Item { onCurrentTextChanged: { droidstar.set_cc(_comboCC.currentIndex); } + visible: false } Button { id: _connectbutton @@ -319,6 +321,7 @@ Item { droidstar.set_dmr_pc(privateBox.checked) //console.log("screen size ", parent.width, " x ", parent.height); } + visible: false } Text { id: _dtmflabel @@ -330,6 +333,7 @@ Item { color: "white" font.pixelSize: parent.height / 30; verticalAlignment: Text.AlignVCenter + visible: false } TextField { id: _editIAXDTMF @@ -339,6 +343,7 @@ Item { height: parent.height / rows; font.pixelSize: parent.height / 35 //inputMethodHints: "ImhPreferNumbers" + visible: false } Button { id: _dtmfsendbutton @@ -351,6 +356,7 @@ Item { onClicked: { droidstar.dtmf_send_clicked(editIAXDTMF.text); } + visible: false } Text { id: _element3 @@ -362,6 +368,7 @@ Item { color: "white" font.pixelSize: parent.height / 30; verticalAlignment: Text.AlignVCenter + visible: false } TextField { visible: false diff --git a/micpermission.mm b/micpermission.mm index f219e3f..e53ff6f 100755 --- a/micpermission.mm +++ b/micpermission.mm @@ -27,7 +27,6 @@ int MicPermission::check_permission() #ifdef Q_OS_IOS [UIApplication sharedApplication].idleTimerDisabled = YES; #endif - [UIApplication sharedApplication].idleTimerDisabled = YES; AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio]; if(status != AVAuthorizationStatusAuthorized){ [AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio completionHandler:^(BOOL granted) {