From 3d560909ea2f3a5e4dd614bd406f1ba4f84e077c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 11 Nov 2024 21:14:42 +0100 Subject: [PATCH] status/volume: Don't show OSD when initializing The OSD should only be shown when switching to or from headphones, not when initializing the volume indicator during startup. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8054 Part-of: --- js/ui/status/volume.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 7e5032607..e2fa9a207 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -344,9 +344,11 @@ class OutputStreamSlider extends StreamSlider { if (hasHeadphones === this._hasHeadphones) return; + const initializing = this._hasHeadphones === undefined; this._hasHeadphones = hasHeadphones; this._updateIcon(); - this.showOSD(); + if (!initializing) + this.showOSD(); } _updateIcon() {