mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
BUGZ-923: Fix an edge case in Audio I/O devices in Settings -> About
This commit is contained in:
parent
ab376d59db
commit
4223800af7
1 changed files with 8 additions and 2 deletions
|
@ -25,6 +25,14 @@ Flickable {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
root.contentX = 0;
|
root.contentX = 0;
|
||||||
root.contentY = 0;
|
root.contentY = 0;
|
||||||
|
|
||||||
|
// When the user clicks the About tab, refresh the audio I/O model so that
|
||||||
|
// the delegate Component.onCompleted handlers fire, which will update
|
||||||
|
// the text that appears in the About screen.
|
||||||
|
audioOutputDevices.model = undefined;
|
||||||
|
audioOutputDevices.model = AudioScriptingInterface.devices.output;
|
||||||
|
audioInputDevices.model = undefined;
|
||||||
|
audioInputDevices.model = AudioScriptingInterface.devices.input;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,7 +215,6 @@ Flickable {
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.preferredHeight: contentItem.height
|
Layout.preferredHeight: contentItem.height
|
||||||
interactive: false
|
interactive: false
|
||||||
model: AudioScriptingInterface.devices.input
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (HMD.active && selectedHMD) {
|
if (HMD.active && selectedHMD) {
|
||||||
|
@ -241,7 +248,6 @@ Flickable {
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.preferredHeight: contentItem.height
|
Layout.preferredHeight: contentItem.height
|
||||||
interactive: false
|
interactive: false
|
||||||
model: AudioScriptingInterface.devices.output
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (HMD.active && selectedHMD) {
|
if (HMD.active && selectedHMD) {
|
||||||
|
|
Loading…
Reference in a new issue