From 0ad99cb0f5385a7424e77e95b2dfe51e862f22b4 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 27 Dec 2024 19:58:07 -0500 Subject: [PATCH] Hide empty partially matched list (fixes #800) --- CHANGELIST.md | 1 + MPF.UI/Windows/DiscInformationWindow.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 138c1e09..e81e783b 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -138,6 +138,7 @@ - Clean up unused disabled warnings - Missed one - Minor UI changes +- Hide empty partially matched list ### 3.2.4 (2024-11-24) diff --git a/MPF.UI/Windows/DiscInformationWindow.xaml.cs b/MPF.UI/Windows/DiscInformationWindow.xaml.cs index 0fba8819..f7f0bf76 100644 --- a/MPF.UI/Windows/DiscInformationWindow.xaml.cs +++ b/MPF.UI/Windows/DiscInformationWindow.xaml.cs @@ -207,7 +207,7 @@ namespace MPF.UI.Windows if (submissionInfo.FullyMatchedID == null) FullyMatchedID!.Visibility = Visibility.Collapsed; - if (submissionInfo.PartiallyMatchedIDs == null) + if (submissionInfo.PartiallyMatchedIDs == null || submissionInfo.PartiallyMatchedIDs.Count == 0) PartiallyMatchedIDs!.Visibility = Visibility.Collapsed; else PartiallyMatchedIDs!.Text = string.Join(", ", [.. submissionInfo.PartiallyMatchedIDs.ConvertAll(i => i.ToString())]);