Blame SOURCES/0001-status-volume-Hide-sliders-initially.patch

22c471
From 4e555e0efeb4b31918e199d29bee99b2a4ed1c8e Mon Sep 17 00:00:00 2001
22c471
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
22c471
Date: Wed, 11 May 2022 02:34:21 +0200
22c471
Subject: [PATCH] status/volume: Hide sliders initially
22c471
22c471
We update the visibility on state or stream changes, but those
22c471
changes may never happen if pipewire-pulse/pulseaudio isn't
22c471
available (for example when running as root).
22c471
22c471
Hiding the sliders is preferable in that case to showing non-working
22c471
controls.
22c471
---
22c471
 js/ui/status/volume.js | 1 +
22c471
 1 file changed, 1 insertion(+)
22c471
22c471
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
22c471
index d555b426e..ab5065683 100644
22c471
--- a/js/ui/status/volume.js
22c471
+++ b/js/ui/status/volume.js
22c471
@@ -30,6 +30,7 @@ var StreamSlider = class {
22c471
         this._control = control;
22c471
 
22c471
         this.item = new PopupMenu.PopupBaseMenuItem({ activate: false });
22c471
+        this.item.actor.hide();
22c471
 
22c471
         this._slider = new Slider.Slider(0);
22c471
 
22c471
-- 
22c471
2.35.1
22c471