Fastfetch: fix display.bar.border{Left,Right} doesn't work in JSON config

This commit is contained in:
Carter Li
2024-06-12 13:40:06 +08:00
parent 671f5e2cec
commit ebfcd7195e
+2 -2
View File
@@ -180,11 +180,11 @@ const char* ffOptionsParseDisplayJsonConfig(FFOptionsDisplay* options, yyjson_va
if (charTotal)
ffStrbufSetS(&options->barCharTotal, charTotal);
yyjson_val* borderLeft = yyjson_obj_get(val, "border-left");
yyjson_val* borderLeft = yyjson_obj_get(val, "borderLeft");
if (borderLeft)
ffStrbufSetS(&options->barBorderLeft, yyjson_get_str(borderLeft));
yyjson_val* borderRight = yyjson_obj_get(val, "border-right");
yyjson_val* borderRight = yyjson_obj_get(val, "borderRight");
if (borderRight)
ffStrbufSetS(&options->barBorderRight, yyjson_get_str(borderRight));