fix annoying battery popups with 99% battery
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 May 2010 17:51:31 +0000 (17:51 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 May 2010 17:51:31 +0000 (17:51 +0000)
SVN revision: 49011

src/modules/battery/e_mod_main.c

index 2c747b4..118404b 100644 (file)
@@ -563,7 +563,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery,
                _battery_face_time_set(inst->popup_battery, 
                                       time_full);
           }
-        if (have_battery && (!have_power) && (full != 100) &&
+        if (have_battery && (!have_power) && (full < 90) &&
             (((time_left > 0) && battery_config->alert && ((time_left / 60) <= battery_config->alert)) || 
              (battery_config->alert_p && (full <= battery_config->alert_p)))
             )