From d44798b27c8f4ef1ebdf93aa91f8fe52bc4c3ea8 Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:33:09 +0900 Subject: [PATCH] Fix fully matching when multiple matches found (#759) Co-authored-by: Matt Nadareski --- CHANGELIST.md | 1 + MPF.Frontend/Tools/SubmissionGenerator.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index e9fe81a0..7b33af0d 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -5,6 +5,7 @@ - Add .NET 9 to target frameworks - Be smarter about some data types - Consolidate parameter string splitting +- Fix fully matching when multiple matches found ### 3.2.3 (2024-11-06) diff --git a/MPF.Frontend/Tools/SubmissionGenerator.cs b/MPF.Frontend/Tools/SubmissionGenerator.cs index 2b15a496..e83c3dfc 100644 --- a/MPF.Frontend/Tools/SubmissionGenerator.cs +++ b/MPF.Frontend/Tools/SubmissionGenerator.cs @@ -238,7 +238,7 @@ namespace MPF.Frontend.Tools foundIdSets.Add(foundIds?.ToArray() ?? []); // Ensure that all tracks are found - allFound &= (foundIds != null && foundIds.Count == 1); + allFound &= (foundIds != null && foundIds.Count >= 1); } // If all tracks were found, check if there are any fully-matched IDs