From 62eee2ed5e79d737fb9a5aebf0e1cce504ddac24 Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Sun, 22 Apr 2018 23:11:56 +0200 Subject: [PATCH 1/2] Replace empty string with N/A Replace empty strings for max KSP version with N/D --- GUI/GUIMod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/GUIMod.cs b/GUI/GUIMod.cs index af7ce663c5..4b8c667191 100644 --- a/GUI/GUIMod.cs +++ b/GUI/GUIMod.cs @@ -115,7 +115,7 @@ public GUIMod(CkanModule mod, IRegistryQuerier registry, KspVersionCriteria curr // KSP. if (latest_available_for_any_ksp != null) { - KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? ""; + KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? "N/D"; // If the mod we have installed is *not* the mod we have installed, or we don't know // what we have installed, indicate that an upgrade would be needed. From 7cba16cc6cee05224b6ba64535db0f06e534d8fb Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Wed, 25 Apr 2018 13:45:08 +0200 Subject: [PATCH 2/2] Change "N/D" to "any" --- GUI/GUIMod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/GUIMod.cs b/GUI/GUIMod.cs index 4b8c667191..da267c2cb2 100644 --- a/GUI/GUIMod.cs +++ b/GUI/GUIMod.cs @@ -115,7 +115,7 @@ public GUIMod(CkanModule mod, IRegistryQuerier registry, KspVersionCriteria curr // KSP. if (latest_available_for_any_ksp != null) { - KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? "N/D"; + KSPCompatibility = KSPCompatibilityLong = registry.LatestCompatibleKSP(mod.identifier)?.ToString() ?? "any"; // If the mod we have installed is *not* the mod we have installed, or we don't know // what we have installed, indicate that an upgrade would be needed.