forked from enlightenment/enlightenment
battery - dont show low battery alert if we have >= 15% battery
saves edge cases creating warnings;
This commit is contained in:
parent
09ec2015e9
commit
5a97e2c4e7
|
@ -735,7 +735,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery,
|
|||
{
|
||||
printf("t-debounce = %3.3f\n", (t - debounce_time));
|
||||
debounce_time = t;
|
||||
if ((t - init_time) > 5.0)
|
||||
if (((t - init_time) > 5.0) && (full < 15))
|
||||
_battery_warning_popup(inst, time_left, (double)full / 100.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue