fix battery option parsing

Fix copy&paste mistake, battery should be enabled
for obsolete "battery" option instead of obsolete
"systray" option.
This commit is contained in:
Sebastian Reichel 2015-08-05 02:59:44 +02:00
parent 9df55d5ef7
commit 995ae3c72b

View file

@ -900,7 +900,7 @@ void add_entry(char *key, char *value)
} }
/* Battery */ /* Battery */
else if (strcmp(key, "systray") == 0) { else if (strcmp(key, "battery") == 0) {
// Obsolete option // Obsolete option
config_has_battery = 1; config_has_battery = 1;
config_battery_enabled = atoi(value); config_battery_enabled = atoi(value);