summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c
index c6ec5a1..f6fdc8a 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -105,6 +105,9 @@ print_volume(struct interface *ifc, struct vol_ctl *ctl)
{
gint vol;
+ if (!ctl->mute_set || !ctl->volume_set)
+ return;
+
allocate_volume_bar(ifc);
vol = (gint) (ifc->volume_bar_len * ctl->vol / PA_VOLUME_NORM);
wprintw(ifc->menu_win, " [%c][%-*.*s]",