From 5e7458ff1cc2e98d70a34fbcd21e350d9cc4bce6 Mon Sep 17 00:00:00 2001 From: Aabed Khan <39409020+TheAabedKhan@users.noreply.github.com> Date: Wed, 14 Jun 2023 20:19:11 +0545 Subject: [PATCH] fix: import patches selects unsupported patches (#942) --- lib/ui/widgets/patchesSelectorView/patch_item.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/widgets/patchesSelectorView/patch_item.dart b/lib/ui/widgets/patchesSelectorView/patch_item.dart index c3cfba80..2a1f1c91 100644 --- a/lib/ui/widgets/patchesSelectorView/patch_item.dart +++ b/lib/ui/widgets/patchesSelectorView/patch_item.dart @@ -41,6 +41,7 @@ class PatchItem extends StatefulWidget { class _PatchItemState extends State { @override Widget build(BuildContext context) { + widget.isSelected = widget.isSelected && (!widget.isUnsupported || widget._managerAPI.areExperimentalPatchesEnabled()); return Padding( padding: const EdgeInsets.symmetric(vertical: 4.0), child: CustomCard(