Modified logout-popup launch function to check for empty args property

This commit is contained in:
dascruel 2020-12-28 15:25:57 +00:00
parent fb0542c098
commit 9e1167e325
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ local function create_button(icon_name, action_name, color, onclick, icon_size,
return button
end
local function launch(user_args)
local args = user_args or {}
local function launch(args)
args = args or {}
local bg_color = args.bg_color or beautiful.bg_normal
local accent_color = args.accent_color or beautiful.bg_focus