Commit 7d4e17c9 authored by Nate Graham's avatar Nate Graham 🔩

[applet] Remove "Show inactive devices" feature

There may be a use case for showing and interacting with inactive
devices, but probably not from the applet, which is supposed to be a
quick way to interact with the sound system. This commit makes the applet
always filter out inactive devices and only show the active ones. The
KCM retains the ability to optionally show inactive ones.
parent c450c724
......@@ -461,21 +461,6 @@ Item {
Layout.fillWidth: true
}
PlasmaComponents3.ToolButton {
id: showHiddenDevices
icon.name: "view-visible"
// Only show if there actually are any inactive devices
visible: (paSourceModel.count != paSourceFilterModel.count) || (paSinkModel.count != paSinkFilterModel.count)
checkable: true
Accessible.name: i18n("show hidden devices")
PlasmaComponents3.ToolTip {
text: i18n("Show hidden devices")
}
}
PlasmaComponents3.ToolButton {
id: globalMuteCheckbox
......@@ -602,7 +587,7 @@ Item {
Layout.maximumHeight: contentHeight
spacing: 0
model: showHiddenDevices.checked || !showHiddenDevices.visible ? paSinkModel : paSinkFilterModel
model: paSinkFilterModel
boundsBehavior: Flickable.StopAtBounds;
delegate: DeviceListItem {
......@@ -629,7 +614,7 @@ Item {
Layout.minimumHeight: contentHeight
Layout.maximumHeight: contentHeight
model: showHiddenDevices.checked || !showHiddenDevices.visible ? paSourceModel : paSourceFilterModel
model: paSourceFilterModel
boundsBehavior: Flickable.StopAtBounds;
delegate: DeviceListItem {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment