X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/f82f0ed20542258833e866c8f33bc54c57c3b863..8c2e1df0c3f648ed70e52fab38a176e2f924407b:/widgets/contrib/tpbat/init.lua?ds=sidebyside diff --git a/widgets/contrib/tpbat/init.lua b/widgets/contrib/tpbat/init.lua index 8b53a4b..d96c2d8 100644 --- a/widgets/contrib/tpbat/init.lua +++ b/widgets/contrib/tpbat/init.lua @@ -17,7 +17,6 @@ local debug = { getinfo = debug.getinfo } local newtimer = require("lain.helpers").newtimer local first_line = require("lain.helpers").first_line -local beautiful = require("beautiful") local naughty = require("naughty") local wibox = require("wibox") @@ -43,7 +42,7 @@ end function tpbat.show(t_out) tpbat.hide() - local bat = self.bat + local bat = tpbat.bat if bat == nil or not bat:installed() then return end