Skip to content
Snippets Groups Projects
Commit 6c0bb455 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

audiosettings: select correct audio manager

Else, on GNU/Linux it will select "alsa" in the UI.
Also AVSettingsPage is unused.

Change-Id: I5744b2c8dc02b65d97e6ea2bf8dcec477ae0042c
parent 1e59b830
No related branches found
No related tags found
No related merge requests found
...@@ -78,12 +78,6 @@ ListSelectionView { ...@@ -78,12 +78,6 @@ ListSelectionView {
property int selectedMenu: index property int selectedMenu: index
onSelectedMenuChanged: {
if (selectedMenu === SettingsView.Media) {
avSettings.populateAVSettings()
}
}
rightPaneItem: StackView { rightPaneItem: StackView {
id: settingsView id: settingsView
objectName: "settingsView" objectName: "settingsView"
......
...@@ -182,6 +182,8 @@ SettingsPageBase { ...@@ -182,6 +182,8 @@ SettingsPageBase {
widthOfComboBox: itemWidth widthOfComboBox: itemWidth
role: "ID_UTF8" role: "ID_UTF8"
Component.onCompleted: currentAccountEnableColumnLayout.populateAudioSettings()
onActivated: { onActivated: {
AvAdapter.stopAudioMeter() AvAdapter.stopAudioMeter()
var selectedAudioManager = comboModel.data( var selectedAudioManager = comboModel.data(
...@@ -193,4 +195,3 @@ SettingsPageBase { ...@@ -193,4 +195,3 @@ SettingsPageBase {
} }
} }
} }
/*
* Copyright (C) 2019-2023 Savoir-faire Linux Inc.
* Author: Yang Wang <yang.wang@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick
import QtQuick.Layouts
import net.jami.Models 1.1
import net.jami.Adapters 1.1
import net.jami.Constants 1.1
import "../../commoncomponents"
Rectangle {
id: root
property int preferredColumnWidth: Math.min(root.width / 2 - 50, 275)
property int contentWidth: avSettingsColumnLayout.width
property int preferredHeight: avSettingsColumnLayout.implicitHeight
function populateAVSettings() {
audioSettings.populateAudioSettings()
}
color: JamiTheme.secondaryBackgroundColor
ColumnLayout {
id: avSettingsColumnLayout
anchors.horizontalCenter: root.horizontalCenter
width: Math.min(JamiTheme.maximumWidthSettingsView, root.width)
AudioSettings {
id: audioSettings
Layout.fillWidth: true
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
itemWidth: preferredColumnWidth
}
VideoSettings {
id: videoSettings
Layout.fillWidth: true
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
itemWidth: preferredColumnWidth
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment