diff options
Diffstat (limited to 'mpris-widget')
-rw-r--r-- | mpris-widget/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index 0dac632..22fd0f7 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -72,9 +72,9 @@ local popup = awful.popup{ local function rebuild_popup() awful.spawn.easy_async(LIST_PLAYERS_CMD, function(stdout, _, _, _) + for i = 0, #rows do rows[i]=nil end for player_name in stdout:gmatch("[^\r\n]+") do if player_name ~='' and player_name ~=nil then - for i = 0, #rows do rows[i]=nil end local checkbox = wibox.widget{ { |