battery modules - actually set ac power flag based on ac presence

this should fix T3649

@fix
This commit is contained in:
Carsten Haitzler 2017-10-18 13:32:50 +09:00 committed by Mike Blumenkrantz
parent e5362e3f4a
commit b6df125850
1 changed files with 7 additions and 1 deletions

View File

@ -297,7 +297,13 @@ _battery_device_update(void)
int acnum = 0;
EINA_LIST_FOREACH(device_ac_adapters, l, ac)
if (ac->present) acnum++;
{
if (ac->present)
{
acnum++;
have_power = 1;
}
}
EINA_LIST_FOREACH(device_batteries, l, bat)
{