diff --git a/applet/contents/config/main.xml b/applet/contents/config/main.xml --- a/applet/contents/config/main.xml +++ b/applet/contents/config/main.xml @@ -16,7 +16,10 @@ true - + + true + + true diff --git a/applet/contents/ui/ConfigGeneral.qml b/applet/contents/ui/ConfigGeneral.qml --- a/applet/contents/ui/ConfigGeneral.qml +++ b/applet/contents/ui/ConfigGeneral.qml @@ -31,6 +31,7 @@ property alias cfg_volumeStep: volumeStep.value property alias cfg_volumeFeedback: volumeFeedback.checked property alias cfg_outputChangeOsd: outputChangeOsd.checked + property alias cfg_showRealDevicesOnly: showRealDevicesOnly.checked VolumeFeedback { id: feedback @@ -83,4 +84,9 @@ id: outputChangeOsd text: i18n("Display notification when default output device changes") } + + QQC2.CheckBox { + id: showRealDevicesOnly + text: i18n("Show real audio devices and streams only") + } } diff --git a/applet/contents/ui/main.qml b/applet/contents/ui/main.qml --- a/applet/contents/ui/main.qml +++ b/applet/contents/ui/main.qml @@ -36,6 +36,7 @@ property bool volumeFeedback: Plasmoid.configuration.volumeFeedback property int maxVolumeValue: Math.round(Plasmoid.configuration.maximumVolume * PulseAudio.NormalVolume / 100.0) property int volumeStep: Math.round(Plasmoid.configuration.volumeStep * PulseAudio.NormalVolume / 100.0) + property bool showRealDevicesOnly: Plasmoid.configuration.showRealDevicesOnly property string displayName: i18n("Audio Volume") property QtObject draggedStream: null @@ -392,7 +393,7 @@ Layout.maximumHeight: contentHeight model: PulseObjectFilterModel { - filters: [ { role: "VirtualStream", value: false } ] + filters: [ { role: "VirtualStream", value: !showRealDevicesOnly } ] sourceModel: SinkInputModel {} } boundsBehavior: Flickable.StopAtBounds; @@ -416,7 +417,7 @@ Layout.maximumHeight: contentHeight model: PulseObjectFilterModel { - filters: [ { role: "VirtualStream", value: false } ] + filters: [ { role: "VirtualStream", value: !showRealDevicesOnly } ] sourceModel: SourceOutputModel {} } boundsBehavior: Flickable.StopAtBounds;