Some UI fixes for first time startup

pull/4/head
Doug McLain 2 years ago
parent 357ae4db19
commit 47ae06e09b

@ -182,6 +182,7 @@ Item {
droidstar.set_slot(_comboSlot.currentIndex); droidstar.set_slot(_comboSlot.currentIndex);
} }
visible: false
} }
ComboBox { ComboBox {
id: _comboCC id: _comboCC
@ -201,6 +202,7 @@ Item {
onCurrentTextChanged: { onCurrentTextChanged: {
droidstar.set_cc(_comboCC.currentIndex); droidstar.set_cc(_comboCC.currentIndex);
} }
visible: false
} }
Button { Button {
id: _connectbutton id: _connectbutton
@ -319,6 +321,7 @@ Item {
droidstar.set_dmr_pc(privateBox.checked) droidstar.set_dmr_pc(privateBox.checked)
//console.log("screen size ", parent.width, " x ", parent.height); //console.log("screen size ", parent.width, " x ", parent.height);
} }
visible: false
} }
Text { Text {
id: _dtmflabel id: _dtmflabel
@ -330,6 +333,7 @@ Item {
color: "white" color: "white"
font.pixelSize: parent.height / 30; font.pixelSize: parent.height / 30;
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
visible: false
} }
TextField { TextField {
id: _editIAXDTMF id: _editIAXDTMF
@ -339,6 +343,7 @@ Item {
height: parent.height / rows; height: parent.height / rows;
font.pixelSize: parent.height / 35 font.pixelSize: parent.height / 35
//inputMethodHints: "ImhPreferNumbers" //inputMethodHints: "ImhPreferNumbers"
visible: false
} }
Button { Button {
id: _dtmfsendbutton id: _dtmfsendbutton
@ -351,6 +356,7 @@ Item {
onClicked: { onClicked: {
droidstar.dtmf_send_clicked(editIAXDTMF.text); droidstar.dtmf_send_clicked(editIAXDTMF.text);
} }
visible: false
} }
Text { Text {
id: _element3 id: _element3
@ -362,6 +368,7 @@ Item {
color: "white" color: "white"
font.pixelSize: parent.height / 30; font.pixelSize: parent.height / 30;
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
visible: false
} }
TextField { TextField {
visible: false visible: false

@ -27,7 +27,6 @@ int MicPermission::check_permission()
#ifdef Q_OS_IOS #ifdef Q_OS_IOS
[UIApplication sharedApplication].idleTimerDisabled = YES; [UIApplication sharedApplication].idleTimerDisabled = YES;
#endif #endif
[UIApplication sharedApplication].idleTimerDisabled = YES;
AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio]; AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio];
if(status != AVAuthorizationStatusAuthorized){ if(status != AVAuthorizationStatusAuthorized){
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio completionHandler:^(BOOL granted) { [AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio completionHandler:^(BOOL granted) {

Loading…
Cancel
Save