From 7831a3438d46630dad78425eba18c209210e6d1d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 12 Dec 2023 02:32:57 +0100 Subject: [PATCH] fix: Include new patches that are used by default --- .../views/patches_selector/patches_selector_viewmodel.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart index 6b6d7d2439..399fe34945 100644 --- a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart +++ b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart @@ -59,8 +59,9 @@ class PatchesSelectorViewModel extends BaseViewModel { bool isSelected(Patch patch) { return selectedPatches.any( - (element) => element.name == patch.name, - ); + (element) => element.name == patch.name, + ) || + (isPatchNew(patch) && !patch.excluded); } void navigateToPatchOptions(List