From 17f9ef03eaf009974b2475c1f326af022cbc9d02 Mon Sep 17 00:00:00 2001 From: ali Date: Sun, 19 Nov 2023 17:11:34 +0100 Subject: [PATCH] Fixed issue #424: Huston warning on fully charged battery --- batteryarc-widget/batteryarc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 55a7694..b2b25ae 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -119,7 +119,7 @@ local function worker(user_args) text.text = '' end - if charge < 15 then + if charge < 15 and charge > 0 then widget.colors = { low_level_color } if enable_battery_warning and status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then -- if 5 minutes have elapsed since the last warning