Browse Source

Fixed empty early widget returns

master
Yessiest 1 year ago
parent
commit
09c204ae2d
  1. 2
      widgets/clientmenu/volume.lua
  2. 2
      widgets/desktop/volume.lua

2
widgets/clientmenu/volume.lua

@ -20,7 +20,7 @@ if _VERSION:match("5.1") then
result = (test_pactl == 0)
end
if not result then
return
return function() end
end
local function get_icon(percent)

2
widgets/desktop/volume.lua

@ -24,7 +24,7 @@ if _VERSION:match("5.1") then
amixer_found = (test_amixer == 0)
end
if (not (amixer_found or pactl_found)) then
return
return function() end
end
local try_launch = "pavucontrol"

Loading…
Cancel
Save