X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e64c1443d028749ba469def533efb075abd3d06b..2242f42c8faec1b24a01dcf29f4b5078612e67eb:/widgets/contrib/gpmdp.lua?ds=sidebyside diff --git a/widgets/contrib/gpmdp.lua b/widgets/contrib/gpmdp.lua index 21776ac..94076c8 100644 --- a/widgets/contrib/gpmdp.lua +++ b/widgets/contrib/gpmdp.lua @@ -30,7 +30,7 @@ local function worker(args) os.getenv("HOME") .. "/.config/Google Play Music Desktop Player/json_store/playback.json" local settings = args.settings or function() end - gpmdp.widget = wibox.widget.textbox('') + gpmdp.widget = wibox.widget.textbox() gpmdp_notification_preset = { title = "Now playing", @@ -86,7 +86,7 @@ local function worker(args) gpmdp.timer = helpers.newtimer("gpmdp", timeout, gpmdp.update, true, true) - return setmetatable(gpmdp, { __index = gpmdp.widget }) + return gpmdp end return setmetatable(gpmdp, { __call = function(_, ...) return worker(...) end })