Save selected device in settings to make sure it will not be changed back in Menu

This commit is contained in:
Vladyslav Stelmakhovskyi 2017-05-08 21:24:46 +02:00
parent d0111ac0bb
commit fa9a4053ca

View file

@ -162,6 +162,7 @@ Rectangle {
onCheckBoxClicked: {
if (checked) {
AudioDevice.setInputDeviceAsync(devicename)
Settings.setValue("audio_input_device", devicename);
}
}
}
@ -218,6 +219,7 @@ Rectangle {
onCheckBoxClicked: {
if (checked) {
AudioDevice.setOutputDeviceAsync(devicename)
Settings.setValue("audio_output_device", devicename);
}
}
}