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:
Romanos Skiadas 2021-10-15 17:19:05 +03:00
parent 2755f85623
commit db0b3e9e8c
1 changed files with 1 additions and 1 deletions

View File

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