From b46ec7d0cc35d10197a1a91f473e0a655188f6eb Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 25 Jul 2014 00:34:59 -0500 Subject: in notify.c, improve the logic for when to tear down a notification --- src/notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notifier.c') diff --git a/src/notifier.c b/src/notifier.c index 496b416..81cd6f1 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -228,7 +228,7 @@ on_battery_property_changed (IndicatorPowerNotifier * self) { notification_show (self); } - else + else if (!new_discharging || (new_power_level == POWER_LEVEL_OK)) { notification_clear (self); } -- cgit v1.2.3