From 4f27e25a2314fc20e7425324129ba4a5611c1d67 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 30 May 2025 21:52:59 -0400 Subject: [PATCH] Experiment with smarter version detection (#2324) DO NOT merge without thorough testing --- lib/providers/apps_provider.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/providers/apps_provider.dart b/lib/providers/apps_provider.dart index 7f125b6..172b6ff 100644 --- a/lib/providers/apps_provider.dart +++ b/lib/providers/apps_provider.dart @@ -1335,7 +1335,11 @@ class AppsProvider with ChangeNotifier { var templateVersionFormats = findStandardFormatsForVersion(templateVersion, true); var comparisonVersionFormats = - findStandardFormatsForVersion(comparisonVersion, false); + findStandardFormatsForVersion(comparisonVersion, true); + if (comparisonVersionFormats.isEmpty) { + comparisonVersionFormats = + findStandardFormatsForVersion(comparisonVersion, false); + } var commonStandardFormats = templateVersionFormats.intersection(comparisonVersionFormats); if (commonStandardFormats.isEmpty) {