Skip to content

Commit

Permalink
Fix muted problem. To know if the sound is mute we have to check if m…
Browse files Browse the repository at this point in the history
…ute == "yes" instead of mute == "no"
  • Loading branch information
Mathieu Nivoliez committed May 29, 2016
1 parent 6c40d0f commit 762ebb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions widgets/pulsebar.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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] ")
Expand Down

0 comments on commit 762ebb0

Please sign in to comment.