From 42705c2fea43eb6fce787773d7d2b593200dd586 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Mon, 19 Aug 2019 11:04:54 -0700 Subject: [PATCH] Combine conditional statements --- .../qml/hifi/simplifiedUI/helpApp/about/HelpAbout.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/interface/resources/qml/hifi/simplifiedUI/helpApp/about/HelpAbout.qml b/interface/resources/qml/hifi/simplifiedUI/helpApp/about/HelpAbout.qml index 78ff24a2ee..4a36232029 100644 --- a/interface/resources/qml/hifi/simplifiedUI/helpApp/about/HelpAbout.qml +++ b/interface/resources/qml/hifi/simplifiedUI/helpApp/about/HelpAbout.qml @@ -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 } }