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)

This commit is contained in:
Serhiy Mytrovtsiy
2025-10-20 18:09:46 +02:00
parent 5384e71889
commit 0061b158f7

View File

@@ -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()
})