mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 07:12:45 +02:00
fix audio setting persistence for already selected device
This commit is contained in:
parent
5e0cfb6137
commit
06bf5807ae
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,7 @@ function switchAudioDevice(audioDeviceMenuString) {
|
|||
}
|
||||
} else {
|
||||
debug("Selected input device is the same as the current input device!")
|
||||
Settings.setValue(INPUT_DEVICE_SETTING, selectedDevice);
|
||||
Menu.setIsOptionChecked(audioDeviceMenuString, true);
|
||||
AudioDevice.setInputDevice(selectedDevice); // Still try to force-set the device (in case the user's trying to forcefully debug an issue)
|
||||
}
|
||||
|
@ -172,6 +173,7 @@ function switchAudioDevice(audioDeviceMenuString) {
|
|||
}
|
||||
} else {
|
||||
debug("Selected output device is the same as the current output device!")
|
||||
Settings.setValue(OUTPUT_DEVICE_SETTING, selectedDevice);
|
||||
Menu.setIsOptionChecked(audioDeviceMenuString, true);
|
||||
AudioDevice.setOutputDevice(selectedDevice); // Still try to force-set the device (in case the user's trying to forcefully debug an issue)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue