1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

Tie volume OSD to dbus event

This commit is contained in:
bbedward
2025-09-30 10:11:35 -04:00
parent e875d1a5d7
commit c529959027
4 changed files with 35 additions and 9 deletions

View File

@@ -12,12 +12,24 @@ DankOSD {
enableMouseInteraction: true
Connections {
target: AudioService
target: AudioService.sink && AudioService.sink.audio ? AudioService.sink.audio : null
function onVolumeChanged() {
root.show()
if (!AudioService.suppressOSD) {
root.show()
}
}
function onMutedChanged() {
if (!AudioService.suppressOSD) {
root.show()
}
}
}
Connections {
target: AudioService
function onSinkChanged() {
if (root.shouldBeVisible) {
root.show()