mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
removed n/a from battery time
This commit is contained in:
@@ -39,9 +39,9 @@ class BatteryTimeWidget: BatteryWidget {
|
||||
}
|
||||
|
||||
override func update() {
|
||||
if self.time == 0 && self.size == self.batterySize + timeWidth {
|
||||
if self.time <= 0 && self.size == self.batterySize + timeWidth {
|
||||
self.changeWidth(width: 0)
|
||||
} else if self.time != 0 || self.size != self.batterySize + timeWidth {
|
||||
} else if self.time >= 0 || self.size != self.batterySize + timeWidth {
|
||||
self.changeWidth(width: timeWidth)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user