From 0061b158f7f1d2513f724070bef81f16eabfa00c Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 20 Oct 2025 18:09:46 +0200 Subject: [PATCH] fix: added an additional redraw when something changes in the Battery widget. This eliminates artifacts when the widget switches from the AC plug-in icon to the charging icon (#2611) --- Kit/Widgets/Battery.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kit/Widgets/Battery.swift b/Kit/Widgets/Battery.swift index 09cf6347..b56a0a88 100644 --- a/Kit/Widgets/Battery.swift +++ b/Kit/Widgets/Battery.swift @@ -407,6 +407,7 @@ public class BatteryWidget: WidgetWrapper { } if updated { + self.needsDisplay = true DispatchQueue.main.async(execute: { self.display() }) @@ -623,6 +624,7 @@ public class BatteryDetailsWidget: WidgetWrapper { } if updated { + self.needsDisplay = true DispatchQueue.main.async(execute: { self.display() })