mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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
|
||||
delegate: Item {
|
||||
Component.onCompleted: {
|
||||
if (HMD.active && selectedHMD) {
|
||||
audioInputDevices.selectedInputDeviceName = model.devicename
|
||||
} else if (!HMD.active && selectedDesktop) {
|
||||
if ((HMD.active && selectedHMD) || (!HMD.active && selectedDesktop)) {
|
||||
audioInputDevices.selectedInputDeviceName = model.devicename
|
||||
}
|
||||
}
|
||||
|
@ -277,9 +275,7 @@ Flickable {
|
|||
interactive: false
|
||||
delegate: Item {
|
||||
Component.onCompleted: {
|
||||
if (HMD.active && selectedHMD) {
|
||||
audioOutputDevices.selectedOutputDeviceName = model.devicename
|
||||
} else if (!HMD.active && selectedDesktop) {
|
||||
if ((HMD.active && selectedHMD) || (!HMD.active && selectedDesktop)) {
|
||||
audioOutputDevices.selectedOutputDeviceName = model.devicename
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue