Fixed a bug where the battery alert would be displayed while charging
This commit is contained in:
parent
3c954f279b
commit
d3c310e885
@ -155,7 +155,7 @@ class BatteryChecker(IntervalModule):
|
||||
else:
|
||||
fdict["status"] = "FULL"
|
||||
|
||||
if self.alert and fdict["percentage"] <= self.alert_percentage:
|
||||
if self.alert and fdict["status"] == "DIS" and fdict["percentage"] <= self.alert_percentage:
|
||||
display_notification(
|
||||
title=self.alert_format_title.format(**fdict),
|
||||
body=self.alert_format_body.format(**fdict),
|
||||
|
Loading…
Reference in New Issue
Block a user