aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-25 00:34:59 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-25 00:34:59 -0500
commitb46ec7d0cc35d10197a1a91f473e0a655188f6eb (patch)
tree90e88aefae6fc2eeb49ad4afed75b1f8d2788e6a
parent265ab08cace125fc1e307f137f62240f74ae2662 (diff)
downloadayatana-indicator-power-b46ec7d0cc35d10197a1a91f473e0a655188f6eb.tar.gz
ayatana-indicator-power-b46ec7d0cc35d10197a1a91f473e0a655188f6eb.tar.bz2
ayatana-indicator-power-b46ec7d0cc35d10197a1a91f473e0a655188f6eb.zip
in notify.c, improve the logic for when to tear down a notification
-rw-r--r--src/notifier.c2
1 files changed, 1 insertions, 1 deletions
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);
}