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
committed by o9000
parent 3a2a734b86
commit 257df4ef22

View File

@@ -898,7 +898,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);
@@ -1464,4 +1464,4 @@ char *get_action(GtkWidget *combo)
if (gtk_combo_box_get_active(GTK_COMBO_BOX(combo)) == 10) if (gtk_combo_box_get_active(GTK_COMBO_BOX(combo)) == 10)
return "prev_task"; return "prev_task";
return "none"; return "none";
} }