Make sure colors and emoji are disabled when not on TTY

This commit is contained in:
Philippe Teuwen 2020-04-25 15:10:34 +02:00
parent a8ff7b4815
commit a15d14e038
2 changed files with 7 additions and 1 deletions

View file

@ -986,10 +986,10 @@ int loadFileJSON(const char *preferredName, void *data, size_t maxdatalen, size_
}
*datalen = sptr;
}
PrintAndLogEx(SUCCESS, "loaded from JSON file " _YELLOW_("%s"), fileName);
if (!strcmp(ctype, "settings")) {
preferences_load_callback(root);
}
PrintAndLogEx(SUCCESS, "loaded from JSON file " _YELLOW_("%s"), fileName);
out:
json_decref(root);
free(fileName);