Merge pull request #356 from lonerOrz/fix/osd

Initialize volume silently
This commit is contained in:
Lemmy
2025-09-24 22:05:08 -04:00
committed by GitHub
+13 -6
View File
@@ -288,22 +288,29 @@ Variants {
target: AudioService
function onVolumeChanged() {
if (!volumeInitialized) {
volumeInitialized = true
} else {
if (volumeInitialized) {
showOSD("volume")
}
}
function onMutedChanged() {
if (!muteInitialized) {
muteInitialized = true
} else {
if (muteInitialized) {
showOSD("volume")
}
}
}
// Timer to initialize volume/mute flags after services are ready
Timer {
id: initTimer
interval: 100 // 100ms delay to allow services to initialize
running: true
onTriggered: {
volumeInitialized = true
muteInitialized = true
}
}
// Brightness change monitoring
Connections {
target: BrightnessService