mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Combine conditional statements
This commit is contained in:
parent
2b86947d4a
commit
42705c2fea
1 changed files with 2 additions and 6 deletions
|
@ -244,9 +244,7 @@ Flickable {
|
||||||
interactive: false
|
interactive: false
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (HMD.active && selectedHMD) {
|
if ((HMD.active && selectedHMD) || (!HMD.active && selectedDesktop)) {
|
||||||
audioInputDevices.selectedInputDeviceName = model.devicename
|
|
||||||
} else if (!HMD.active && selectedDesktop) {
|
|
||||||
audioInputDevices.selectedInputDeviceName = model.devicename
|
audioInputDevices.selectedInputDeviceName = model.devicename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,9 +275,7 @@ Flickable {
|
||||||
interactive: false
|
interactive: false
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (HMD.active && selectedHMD) {
|
if ((HMD.active && selectedHMD) || (!HMD.active && selectedDesktop)) {
|
||||||
audioOutputDevices.selectedOutputDeviceName = model.devicename
|
|
||||||
} else if (!HMD.active && selectedDesktop) {
|
|
||||||
audioOutputDevices.selectedOutputDeviceName = model.devicename
|
audioOutputDevices.selectedOutputDeviceName = model.devicename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue