Modified logout-popup launch function to check for empty args property
This commit is contained in:
parent
fb0542c098
commit
9e1167e325
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue