mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
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:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user