mpris-widget: fix incorrect boolean expression
the loop is not meant to be executed if the player name is nil or '', so the expression needs to be an and.
This commit is contained in:
parent
2755f85623
commit
db0b3e9e8c
|
@ -73,7 +73,7 @@ local popup = awful.popup{
|
|||
local function rebuild_popup()
|
||||
awful.spawn.easy_async(LIST_PLAYERS_CMD, function(stdout, _, _, _)
|
||||
for player_name in stdout:gmatch("[^\r\n]+") do
|
||||
if player_name ~='' or player_name ~=nil then
|
||||
if player_name ~='' and player_name ~=nil then
|
||||
for i = 0, #rows do rows[i]=nil end
|
||||
|
||||
local checkbox = wibox.widget{
|
||||
|
|
Loading…
Reference in New Issue