mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-11-04 08:10:18 +08:00
Compare commits
1 Commits
nightly/20
...
nightly/20
| Author | SHA1 | Date | |
|---|---|---|---|
| ff5f94b34a |
2
daemon
2
daemon
Submodule daemon updated: 2771304c70...95832cfc9d
@ -25,7 +25,7 @@ import "../../commoncomponents"
|
||||
SettingsPageBase {
|
||||
id: root
|
||||
|
||||
property int itemWidth: 188
|
||||
property int itemWidth: 250
|
||||
title: JamiStrings.audio
|
||||
|
||||
flickableContent: ColumnLayout {
|
||||
@ -45,16 +45,34 @@ SettingsPageBase {
|
||||
target: UtilsAdapter
|
||||
|
||||
function onChangeLanguage() {
|
||||
inputAudioModel.reset();
|
||||
outputAudioModel.reset();
|
||||
ringtoneAudioModel.reset();
|
||||
rootLayout.resetDeviceModels();
|
||||
rootLayout.resetDeviceIndices();
|
||||
}
|
||||
}
|
||||
|
||||
function resetDeviceModels() {
|
||||
inputAudioModel.reset();
|
||||
outputAudioModel.reset();
|
||||
ringtoneAudioModel.reset();
|
||||
}
|
||||
|
||||
function resetDeviceIndices() {
|
||||
inputComboBoxSetting.modelIndex = inputComboBoxSetting.comboModel.getCurrentIndex();
|
||||
outputComboBoxSetting.modelIndex = outputComboBoxSetting.comboModel.getCurrentIndex();
|
||||
ringtoneComboBoxSetting.modelIndex = ringtoneComboBoxSetting.comboModel.getCurrentIndex();
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: AvAdapter
|
||||
|
||||
function onAudioDeviceListChanged(inputs, outputs) {
|
||||
rootLayout.resetDeviceModels();
|
||||
rootLayout.resetDeviceIndices();
|
||||
}
|
||||
}
|
||||
|
||||
function populateAudioSettings() {
|
||||
inputComboBoxSetting.modelIndex = inputComboBoxSetting.comboModel.getCurrentIndex();
|
||||
outputComboBoxSetting.modelIndex = outputComboBoxSetting.comboModel.getCurrentIndex();
|
||||
ringtoneComboBoxSetting.modelIndex = ringtoneComboBoxSetting.comboModel.getCurrentIndex();
|
||||
rootLayout.resetDeviceIndices();
|
||||
if (audioManagerComboBoxSetting.comboModel.rowCount() > 0) {
|
||||
audioManagerComboBoxSetting.modelIndex = audioManagerComboBoxSetting.comboModel.getCurrentSettingIndex();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user