mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 08:50:10 +01:00
Display: don't print display type twice
This commit is contained in:
1 parent
f61794ea70
commit
debb5d8ad1
1 file changed
+2
-3
@@ -49,9 +49,8 @@ void ffPrintDisplay(FFDisplayOptions* options)
|
||||
ffStrbufClear(&key);
|
||||
if(options->moduleArgs.key.length == 0)
|
||||
{
|
||||
const char* subkey = result->name.length ? result->name.chars : displayType;
|
||||
if (subkey)
|
||||
ffStrbufAppendF(&key, "%s (%s)", FF_DISPLAY_MODULE_NAME, subkey);
|
||||
if (result->name.length)
|
||||
ffStrbufAppendF(&key, "%s (%s)", FF_DISPLAY_MODULE_NAME, result->name.chars);
|
||||
else if (moduleIndex > 0)
|
||||
ffStrbufAppendF(&key, "%s (%d)", FF_DISPLAY_MODULE_NAME, moduleIndex);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user