battery - dont show low battery alert if we have >= 15% battery

saves edge cases creating warnings;
This commit is contained in:
Carsten Haitzler 2020-12-02 23:04:58 +00:00
parent 09ec2015e9
commit 5a97e2c4e7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}