From 05a3ace5dc5ffa44b3fa2d151f9695451c53e831 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 10 May 2021 20:21:04 +0200 Subject: [PATCH] bug(email_widget): Fix widgets not accessible When fixing linter warnings in ed2b256407291d8edadfcea9380029633cc7d9d8 the previously global values were made local but no return statement to export them was added. Signed-off-by: Lucas Schwiderski --- email-widget/README.md | 3 ++- email-widget/email.lua | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/email-widget/README.md b/email-widget/README.md index cb55568..3833f14 100644 --- a/email-widget/README.md +++ b/email-widget/README.md @@ -14,7 +14,8 @@ To install it put **email.lua** and **email-widget** folder under **~/.config/aw - add widget to awesome: ```lua -require("email") +local email_widget, email_icon = require("email") + ... s.mytasklist, -- Middle widget { -- Right widgets diff --git a/email-widget/email.lua b/email-widget/email.lua index f7656fb..df80678 100644 --- a/email-widget/email.lua +++ b/email-widget/email.lua @@ -40,3 +40,5 @@ local function show_emails() end email_icon:connect_signal("mouse::enter", function() show_emails() end) + +return email_widget, email_icon