1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

Fix audio tab in control center

- Swap between input and output components properly in loader
This commit is contained in:
bbedward
2025-08-13 19:13:36 -04:00
parent eb666477b9
commit f399bb1916

View File

@@ -33,13 +33,18 @@ Item {
}
}
// Output Tab - Loader
// Single Loader that switches between Output and Input
Loader {
width: parent.width
height: parent.height - 48
active: audioTab.audioSubTab === 0
asynchronous: true
sourceComponent: Component {
sourceComponent: audioTab.audioSubTab === 0 ? outputTabComponent : inputTabComponent
}
}
// Output Tab Component
Component {
id: outputTabComponent
DankFlickable {
clip: true
contentHeight: outputColumn.height
@@ -62,15 +67,10 @@ Item {
}
}
}
}
// Input Tab - Loader
Loader {
width: parent.width
height: parent.height - 48
active: audioTab.audioSubTab === 1
asynchronous: true
sourceComponent: Component {
// Input Tab Component
Component {
id: inputTabComponent
DankFlickable {
clip: true
contentHeight: inputColumn.height
@@ -93,8 +93,6 @@ Item {
}
}
}
}
}
// Volume Control Component
Component {