From 762ebb043e62600b997b3f989f78933650027475 Mon Sep 17 00:00:00 2001 From: Mathieu Nivoliez Date: Sun, 29 May 2016 19:37:38 +0200 Subject: [PATCH] Fix muted problem. To know if the sound is mute we have to check if mute == "yes" instead of mute == "no" --- widgets/pulsebar.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index fc697fa..6955b04 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -1,10 +1,10 @@ --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + --]] local newtimer = require("lain.helpers").newtimer @@ -134,7 +134,7 @@ local function worker(args) then pulsebar._current_level = volu pulsebar.bar:set_value(pulsebar._current_level / 100) - if not mute and volu == 0 or mute == "no" + if not mute and volu == 0 or mute == "yes" then pulsebar._muted = true pulsebar.tooltip:set_text (" [Muted] ")