From 27519031fee755cf678bde8880b93506dceafa23 Mon Sep 17 00:00:00 2001 From: Facetoe Date: Wed, 20 Sep 2017 00:37:22 +0800 Subject: [PATCH] Apply patch for battery notification spam. (#607) Raised in #578. --- i3pystatus/battery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index 4f4917b..e812e76 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -345,7 +345,7 @@ class BatteryChecker(IntervalModule): if self.alert and fdict["status"] == "DIS" and fdict["percentage"] <= self.alert_percentage: title, body = formatp(self.alert_format_title, **fdict), formatp(self.alert_format_body, **fdict) - if not self.notification: + if self.notification is None: self.notification = DesktopNotification( title=title, body=body,