Global: add --module-key " " as a magic case for hiding keys

This commit is contained in:
李通洲
2023-09-21 16:17:23 +08:00
parent 592de4c8f2
commit 560c2acb88
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ Features:
* Support winget package manager detection, guarded behind `--allow-slow-operations` (Packages, Windows)
* Print monitor type (built-in or external) (Display)
* Support full GPU detection in WSL (Linux, GPU)
* Add `--module-key " "` as a magic case for hiding keys
Bugfixes:
* Fix fastfetch hanging in specific environment (#561)
+4
View File
@@ -10,6 +10,10 @@ void ffPrintLogoAndKey(const char* moduleName, uint8_t moduleIndex, const FFModu
if(moduleName == NULL)
return;
//This is used as a magic value for hiding keys
if(moduleArgs && ffStrbufEqualS(&moduleArgs->key, " "))
return;
if(!instance.config.pipe)
{
fputs(FASTFETCH_TEXT_MODIFIER_RESET, stdout);