AudioPanel: suppress OSD when toggle mute/unmute to prevent overlapping

This commit is contained in:
Ly-sec
2025-11-27 09:34:00 +01:00
parent f70e49ad9e
commit 778dce21c1
3 changed files with 38 additions and 2 deletions
+7 -2
View File
@@ -206,6 +206,8 @@ Variants {
}
function onMutedChanged() {
if (AudioService.consumeOutputOSDSuppression())
return;
showOSD(OSD.Type.Volume);
}
@@ -215,8 +217,11 @@ Variants {
}
function onInputMutedChanged() {
if (AudioService.hasInput)
showOSD(OSD.Type.InputVolume);
if (!AudioService.hasInput)
return;
if (AudioService.consumeInputOSDSuppression())
return;
showOSD(OSD.Type.InputVolume);
}
// Refresh OSD when device changes to ensure correct volume is displayed