mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Make sure audio device not gets unchecked
This commit is contained in:
parent
10f7f08171
commit
7a36894f76
1 changed files with 6 additions and 4 deletions
|
@ -194,12 +194,13 @@ Rectangle {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: parent.width - inputLevel.width
|
||||
clip: true
|
||||
checkable: !checked
|
||||
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
||||
boxSize: margins.sizeCheckBox / 2
|
||||
isRound: true
|
||||
text: devicename
|
||||
onClicked: {
|
||||
if (checked) {
|
||||
onPressed: {
|
||||
if (!checked) {
|
||||
Audio.setInputDevice(info, bar.currentIndex === 1);
|
||||
}
|
||||
}
|
||||
|
@ -265,9 +266,10 @@ Rectangle {
|
|||
boxSize: margins.sizeCheckBox / 2
|
||||
isRound: true
|
||||
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
||||
checkable: !checked
|
||||
text: devicename
|
||||
onClicked: {
|
||||
if (checked) {
|
||||
onPressed: {
|
||||
if (!checked) {
|
||||
Audio.setOutputDevice(info, bar.currentIndex === 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue