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,9 +16,12 @@ true - + true + + false + 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_showVirtualStreams: showVirtualStreams.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: showVirtualStreams + Kirigami.FormData.label: i18n("Show:") + text: i18nc("show virtual streams and devices", "Virtual audio streams and devices") + } } 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 showVirtualStreams: Plasmoid.configuration.showVirtualStreams 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: showVirtualStreams } ] sourceModel: SinkInputModel {} } boundsBehavior: Flickable.StopAtBounds; @@ -416,7 +418,7 @@ Layout.maximumHeight: contentHeight model: PulseObjectFilterModel { - filters: [ { role: "VirtualStream", value: false } ] + filters: [ { role: "VirtualStream", value: showVirtualStreams } ] sourceModel: SourceOutputModel {} } boundsBehavior: Flickable.StopAtBounds;