battery modules - actually set ac power flag based on ac presence
this should fix T3649 @fix
This commit is contained in:
parent
e5362e3f4a
commit
b6df125850
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue