[gnome-shell/gnome-42] status/volume: Hide sliders initially



commit 24a587cfd183347d1c75cd8b2367c3c485e06ccc
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed May 11 02:34:21 2022 +0200

    status/volume: Hide sliders initially
    
    We update the visibility on state or stream changes, but those
    changes may never happen if pipewire-pulse/pulseaudio isn't
    available (for example when running as root).
    
    Hiding the sliders is preferable in that case to showing non-working
    controls.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2295>
    (cherry picked from commit 9400759f25f6493d8e0188271c2e3b98aaed9785)

 js/ui/status/volume.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
index 7164e10543..f623ee6803 100644
--- a/js/ui/status/volume.js
+++ b/js/ui/status/volume.js
@@ -34,6 +34,7 @@ var StreamSlider = class {
         this._control = control;
 
         this.item = new PopupMenu.PopupBaseMenuItem({ activate: false });
+        this.item.hide();
 
         this._inDrag = false;
         this._notifyVolumeChangeId = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]