Initialize volume silently

This commit is contained in:
loner
2025-09-25 09:22:42 +08:00
parent 6dd6c6af74
commit deca5e1235
+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