mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
JsonConfig: supports --structure-disabled
This commit is contained in:
@@ -299,6 +299,9 @@ static const char* printJsonConfig(FFdata* data, bool prepare)
|
||||
else
|
||||
return "modules must be an array of strings or objects";
|
||||
|
||||
if (ffStrbufSeparatedContainIgnCaseS(&data->structureDisabled, type, ':'))
|
||||
continue;
|
||||
|
||||
if(prepare)
|
||||
prepareModuleJsonObject(type, module);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user