mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 20:03: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
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: parent.width - inputLevel.width
|
width: parent.width - inputLevel.width
|
||||||
clip: true
|
clip: true
|
||||||
|
checkable: !checked
|
||||||
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
||||||
boxSize: margins.sizeCheckBox / 2
|
boxSize: margins.sizeCheckBox / 2
|
||||||
isRound: true
|
isRound: true
|
||||||
text: devicename
|
text: devicename
|
||||||
onClicked: {
|
onPressed: {
|
||||||
if (checked) {
|
if (!checked) {
|
||||||
Audio.setInputDevice(info, bar.currentIndex === 1);
|
Audio.setInputDevice(info, bar.currentIndex === 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -265,9 +266,10 @@ Rectangle {
|
||||||
boxSize: margins.sizeCheckBox / 2
|
boxSize: margins.sizeCheckBox / 2
|
||||||
isRound: true
|
isRound: true
|
||||||
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
checked: bar.currentIndex === 0 ? selectedDesktop : selectedHMD;
|
||||||
|
checkable: !checked
|
||||||
text: devicename
|
text: devicename
|
||||||
onClicked: {
|
onPressed: {
|
||||||
if (checked) {
|
if (!checked) {
|
||||||
Audio.setOutputDevice(info, bar.currentIndex === 1);
|
Audio.setOutputDevice(info, bar.currentIndex === 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue