mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
OSD: don't display volume OSD if volume is changed through audio panel
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user