summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordascruel <das@laptop.localdomain>2020-12-28 15:25:57 +0000
committerdascruel <das@laptop.localdomain>2020-12-28 15:41:22 +0000
commit9e1167e3257b68b65f1d03d0469c0d2c0857377d (patch)
treeaa87d3d2977c7a23f910a82a88a347504e3ff5bf
parentfb0542c0981d279f92de8ea915753c2f30a5eba7 (diff)
Modified logout-popup launch function to check for empty args property
-rw-r--r--logout-popup-widget/logout-popup.lua4
1 files 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