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())]);