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