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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3543>
This commit is contained in:
parent
fbaead359a
commit
3d560909ea
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user