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



commit 06e345f8d25d2e258f9b6bd718a455073db17677
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 0b3221f672..e0f7aee44d 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]