OSD: don't display volume OSD if volume is changed through audio panel

This commit is contained in:
Lysec
2026-01-31 23:30:53 +01:00
parent ffd1538d64
commit 5b5c951908
+9
View File
@@ -207,6 +207,15 @@ Variants {
if (!isTypeEnabled(type))
return;
// Suppress Audio OSD if Audio Panel or Control Center is open
if (type === OSD.Type.Volume || type === OSD.Type.InputVolume) {
var audioPanel = PanelService.getPanel("audioPanel", root.modelData);
var controlCenterPanel = PanelService.getPanel("controlCenterPanel", root.modelData);
if ((audioPanel && audioPanel.isPanelOpen) || (controlCenterPanel && controlCenterPanel.isPanelOpen)) {
return;
}
}
currentOSDType = type;
if (!root.active) {