diff --git a/pkg/gui/presentation/icons/icons.go b/pkg/gui/presentation/icons/icons.go index fbfc9bb07..6bb031dc2 100644 --- a/pkg/gui/presentation/icons/icons.go +++ b/pkg/gui/presentation/icons/icons.go @@ -13,14 +13,18 @@ func IsIconEnabled() bool { } func SetNerdFontsVersion(version string) { - if !lo.Contains([]string{"2", "3"}, version) { - log.Fatalf("Unsupported nerdFontVersion %s", version) - } + if version == "" { + isIconEnabled = false + } else { + if !lo.Contains([]string{"2", "3"}, version) { + log.Fatalf("Unsupported nerdFontVersion %s", version) + } - if version == "2" { - patchGitIconsForNerdFontsV2() - patchFileIconsForNerdFontsV2() - } + if version == "2" { + patchGitIconsForNerdFontsV2() + patchFileIconsForNerdFontsV2() + } - isIconEnabled = true + isIconEnabled = true + } }