Make sure colors and emoji are disabled when not on TTY

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

No files matched your search

+1 -1
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);