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 @@ -1,5 +1,6 @@ /* Copyright 2016 David Rosca + Copyright 2019 Sefa Eyeoglu This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -31,6 +32,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 +85,14 @@ id: outputChangeOsd text: i18n("Display notification when default output device changes") } + + Item { + Kirigami.FormData.isSection: true + } + + QQC2.CheckBox { + id: showRealDevicesOnly + Kirigami.FormData.label: i18n("Advanced:") + 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 @@ -1,5 +1,6 @@ /* Copyright 2014-2015 Harald Sitter + Copyright 2019 Sefa Eyeoglu This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -36,6 +37,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 +394,7 @@ Layout.maximumHeight: contentHeight model: PulseObjectFilterModel { - filters: [ { role: "VirtualStream", value: false } ] + filters: [ { role: "VirtualStream", value: !showRealDevicesOnly } ] sourceModel: SinkInputModel {} } boundsBehavior: Flickable.StopAtBounds; @@ -416,7 +418,7 @@ Layout.maximumHeight: contentHeight model: PulseObjectFilterModel { - filters: [ { role: "VirtualStream", value: false } ] + filters: [ { role: "VirtualStream", value: !showRealDevicesOnly } ] sourceModel: SourceOutputModel {} } boundsBehavior: Flickable.StopAtBounds;