From 9e1167e3257b68b65f1d03d0469c0d2c0857377d Mon Sep 17 00:00:00 2001 From: dascruel Date: Mon, 28 Dec 2020 15:25:57 +0000 Subject: Modified logout-popup launch function to check for empty args property --- logout-popup-widget/logout-popup.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logout-popup-widget/logout-popup.lua b/logout-popup-widget/logout-popup.lua index fd30c8e..4e52b50 100644 --- a/logout-popup-widget/logout-popup.lua +++ b/logout-popup-widget/logout-popup.lua @@ -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 -- cgit v1.2.3