make battery popup go away automatically when time goes above warning threshold

SVN revision: 49013
This commit is contained in:
Mike Blumenkrantz 2010-05-19 17:57:17 +00:00
parent a0dce1af21
commit 9031bcbb6c
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery,
_battery_warning_popup(inst, time_left, (double)full / 100.0);
}
}
else if (have_power)
else if (have_power || ((time_left / 60) > battery_config->alert))
_battery_warning_popup_destroy(inst);
}
if (!have_battery)