mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Monitor: don't display () if display name is not available
This commit is contained in:
@@ -29,7 +29,9 @@ void ffPrintMonitor(FFMonitorOptions* options)
|
||||
ffStrbufClear(&key);
|
||||
if(options->moduleArgs.key.length == 0)
|
||||
{
|
||||
ffStrbufAppendF(&key, "%s (%s)", FF_MONITOR_MODULE_NAME, display->name.chars);
|
||||
ffStrbufAppendS(&key, FF_MONITOR_MODULE_NAME);
|
||||
if (display->name.length > 0)
|
||||
ffStrbufAppendF(&key, " (%s)", display->name.chars);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user