Skip to content

Commit

Permalink
fix: allow tapping on patch card when experimental switch is enabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mipirakas authored Nov 1, 2022
1 parent e563049 commit 97d4da5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/ui/widgets/patchesSelectorView/patch_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class _PatchItemState extends State<PatchItem> {
: null,
onTap: () {
setState(() {
if (widget.isUnsupported) {
if (widget.isUnsupported &&
!widget._managerAPI.areExperimentalPatchesEnabled()
) {
widget.isSelected = false;
widget.toast.showBottom('patchItem.unsupportedPatchVersion');
} else {
Expand Down Expand Up @@ -123,9 +125,8 @@ class _PatchItemState extends State<PatchItem> {
onChanged: (newValue) {
setState(() {
if (widget.isUnsupported &&
widget._managerAPI
.areExperimentalPatchesEnabled() ==
false) {
!widget._managerAPI.areExperimentalPatchesEnabled()
) {
widget.isSelected = false;
widget.toast
.showBottom('patchItem.unsupportedPatchVersion');
Expand Down

0 comments on commit 97d4da5

Please sign in to comment.