Fix condition
authorEnrico Zini <enrico@enricozini.org>
Wed, 30 Sep 2009 13:33:45 +0000 (14:33 +0100)
committerEnrico Zini <enrico@enricozini.org>
Wed, 30 Sep 2009 13:33:45 +0000 (14:33 +0100)
src/app_power.vala

index d9503d4d33a8d2a50081fe3abdf6bd274eb3740c..6e518774f672baec8b7d5eeaa0f0fbf3240a3e71 100644 (file)
@@ -599,7 +599,7 @@ public void init()
                stderr.printf("Rechargeable: %s\n", dev.is_rechargeable ? "yes" : "no");
                // On the FreeRunner, for some reason the battery does not
                // appear as rechargeable, so I also match it literally
-               if (!dev.is_rechargeable || dev.native_path != "/sys/class/power_supply/battery") continue;
+               if (!dev.is_rechargeable && dev.native_path != "/sys/class/power_supply/battery") continue;
                var bi = new BatteryIcon(dev);
                bi.set_visible(true);
                battery_icons.add(bi);