From 4edc315841e0f5cafcac776b1e642bf99afe52b4 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Fri, 14 Apr 2017 10:02:54 -0400 Subject: Possible fix for memory leak issue #11 --- battery-widget/battery.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'battery-widget') diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index a0116eb..3823fba 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -49,12 +49,13 @@ watch( else batteryType = string.format(batteryType,'') end - battery_widget.image = path_to_icons .. batteryType .. ".svg" + widget.image = path_to_icons .. batteryType .. ".svg" -- Update popup text -- TODO: Filter long lines battery_popup.text = string.gsub(stdout, "\n$", "") - end + end, + battery_widget ) -- Alternative to tooltip - popup message shown by naughty library. You can compare both and choose the preferred one -- cgit v1.2.3