mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 04:42:05 -04:00
audio: fix hide device not working
This commit is contained in:
@@ -40,6 +40,24 @@ Rectangle {
|
||||
font.weight: Font.Medium
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Item {
|
||||
height: 1
|
||||
width: parent.width - headerText.width - settingsButton.width
|
||||
}
|
||||
|
||||
DankActionButton {
|
||||
id: settingsButton
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
iconName: "settings"
|
||||
buttonSize: 28
|
||||
iconSize: 16
|
||||
iconColor: Theme.surfaceVariantText
|
||||
onClicked: {
|
||||
PopoutService.closeControlCenter();
|
||||
PopoutService.openSettingsWithTab("audio");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
@@ -151,8 +169,11 @@ Rectangle {
|
||||
Repeater {
|
||||
model: ScriptModel {
|
||||
values: {
|
||||
const hidden = SessionData.hiddenInputDeviceNames ?? [];
|
||||
const nodes = Pipewire.nodes.values.filter(node => {
|
||||
return node.audio && !node.isSink && !node.isStream;
|
||||
if (!node.audio || node.isSink || node.isStream)
|
||||
return false;
|
||||
return !hidden.includes(node.name);
|
||||
});
|
||||
const pinnedList = audioContent.getPinnedInputs();
|
||||
|
||||
|
||||
@@ -40,6 +40,24 @@ Rectangle {
|
||||
font.weight: Font.Medium
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Item {
|
||||
height: 1
|
||||
width: parent.width - headerText.width - settingsButton.width
|
||||
}
|
||||
|
||||
DankActionButton {
|
||||
id: settingsButton
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
iconName: "settings"
|
||||
buttonSize: 28
|
||||
iconSize: 16
|
||||
iconColor: Theme.surfaceVariantText
|
||||
onClicked: {
|
||||
PopoutService.closeControlCenter();
|
||||
PopoutService.openSettingsWithTab("audio");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
@@ -161,8 +179,11 @@ Rectangle {
|
||||
Repeater {
|
||||
model: ScriptModel {
|
||||
values: {
|
||||
const hidden = SessionData.hiddenOutputDeviceNames ?? [];
|
||||
const nodes = Pipewire.nodes.values.filter(node => {
|
||||
return node.audio && node.isSink && !node.isStream;
|
||||
if (!node.audio || !node.isSink || node.isStream)
|
||||
return false;
|
||||
return !hidden.includes(node.name);
|
||||
});
|
||||
const pinnedList = audioContent.getPinnedOutputs();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user