From d85f54ba836a6421a5de2d90d2358b37b56b46c6 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 5 Oct 2024 09:49:35 -0500 Subject: [PATCH] Show zero download counts as blank in ConsoleUI --- ConsoleUI/ModListScreen.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConsoleUI/ModListScreen.cs b/ConsoleUI/ModListScreen.cs index 2f5f1a569..398c9f8b3 100644 --- a/ConsoleUI/ModListScreen.cs +++ b/ConsoleUI/ModListScreen.cs @@ -71,8 +71,8 @@ public ModListScreen(ConsoleTheme theme, new ConsoleListBoxColumn( Properties.Resources.ModListDownloadsHeader, m => repoData.GetDownloadCount(registry.Repositories.Values, m.identifier) - ?.ToString() - ?? "", + is int i and > 0 + ? i.ToString() : "", (a, b) => (repoData.GetDownloadCount(registry.Repositories.Values, a.identifier) ?? 0) .CompareTo(repoData.GetDownloadCount(registry.Repositories.Values, b.identifier) ?? 0), 12),