Fix keys not being bolt if main color is not set

This commit is contained in:
Linus Dierheimer
2022-06-06 14:20:05 +02:00
parent 1e3cabff2d
commit e4a1a836fe
+5 -1
View File
@@ -257,7 +257,11 @@ void ffPrintLogoAndKey(FFinstance* instance, const char* moduleName, uint8_t mod
if(!instance->config.pipe)
{
fputs(FASTFETCH_TEXT_MODIFIER_RESET FASTFETCH_TEXT_MODIFIER_BOLT, stdout);
ffPrintColor(&instance->config.mainColor);
//If the main color is not set (e.g. none logo), this would reset in \0333[m, which resets everything,
//including the wanted bolt from above. So we only print it, if the main color is at least one char.
if(instance->config.mainColor.length > 0)
ffPrintColor(&instance->config.mainColor);
}
if(customKeyFormat == NULL || customKeyFormat->length == 0)