mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
Initialize volume silently
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user