fix: import patches selects unsupported patches (#942)

This commit is contained in:
Aabed Khan 2023-06-14 20:19:11 +05:45 committed by GitHub
parent ed06aaa1f5
commit 5e7458ff1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ class PatchItem extends StatefulWidget {
class _PatchItemState extends State<PatchItem> {
@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(