Fixed empty early widget returns

This commit is contained in:
Yessiest 2023-02-07 21:47:25 +04:00
parent 7abb1cd7fa
commit 09c204ae2d
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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"