Fixed empty early widget returns
This commit is contained in:
parent
7abb1cd7fa
commit
09c204ae2d
|
@ -20,7 +20,7 @@ if _VERSION:match("5.1") then
|
||||||
result = (test_pactl == 0)
|
result = (test_pactl == 0)
|
||||||
end
|
end
|
||||||
if not result then
|
if not result then
|
||||||
return
|
return function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_icon(percent)
|
local function get_icon(percent)
|
||||||
|
|
|
@ -24,7 +24,7 @@ if _VERSION:match("5.1") then
|
||||||
amixer_found = (test_amixer == 0)
|
amixer_found = (test_amixer == 0)
|
||||||
end
|
end
|
||||||
if (not (amixer_found or pactl_found)) then
|
if (not (amixer_found or pactl_found)) then
|
||||||
return
|
return function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
local try_launch = "pavucontrol"
|
local try_launch = "pavucontrol"
|
||||||
|
|
Loading…
Reference in New Issue