aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}