discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b6df1258502e7ff89ffdb61ed56ecc58fc6f0e60

commit b6df1258502e7ff89ffdb61ed56ecc58fc6f0e60
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Oct 18 13:32:50 2017 +0900

    battery modules - actually set ac power flag based on ac presence
    
    this should fix T3649
    
    @fix
---
 src/modules/battery/e_mod_main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c
index 4bf08bbd6..7a7720bbf 100644
--- a/src/modules/battery/e_mod_main.c
+++ b/src/modules/battery/e_mod_main.c
@@ -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)
      {

-- 


Reply via email to