aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-10-03 15:11:52 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-10-03 15:11:52 +0100
commit2d4b6f0d208efe4ce63299785cceac30228598c6 (patch)
tree500c54155d790e6b1613d45122594c26e9d96280 /src/indicator-power.c
parentf87057a08104fc7dcc0e232a5bf4e51561810ced (diff)
downloadayatana-indicator-power-2d4b6f0d208efe4ce63299785cceac30228598c6.tar.gz
ayatana-indicator-power-2d4b6f0d208efe4ce63299785cceac30228598c6.tar.bz2
ayatana-indicator-power-2d4b6f0d208efe4ce63299785cceac30228598c6.zip
Show non present batteries in the menu
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 28cc023..64392cd 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -429,11 +429,6 @@ menu_add_device (GtkMenu *menu,
g_debug ("%s: got data from object %s", G_STRFUNC, object_path);
- /* Try to fix the case when we get a empty battery bay as a real battery */
- if (state == UP_DEVICE_STATE_UNKNOWN &&
- percentage == 0)
- return;
-
if (kind == UP_DEVICE_KIND_LINE_POWER)
return;