From dd9d9b8076428c4d869043e54b1cd67424020a11 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Tue, 24 Jan 2017 22:45:51 +0400 Subject: [PATCH] fix 'attempt to index a nil value (global self)' --- widgets/contrib/tpbat/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/contrib/tpbat/init.lua b/widgets/contrib/tpbat/init.lua index 380625f..d96c2d8 100644 --- a/widgets/contrib/tpbat/init.lua +++ b/widgets/contrib/tpbat/init.lua @@ -42,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 -- 2.39.5