fix: use a try-finally while handling background task creation, prevent opening patches while disabled and fix loading label

This commit is contained in:
Alberto Ponces
2022-08-17 13:48:56 +01:00
parent a929851662
commit 95a0bcf5d8
3 changed files with 26 additions and 26 deletions

View File

@ -55,7 +55,9 @@ class PatcherView extends StatelessWidget {
? (model.dimPatchesCard() ? 0.5 : 1)
: (model.dimPatchesCard() ? 0.75 : 1),
child: PatchSelectorCard(
onPressed: model.navigateToPatchesSelector,
onPressed: model.dimPatchesCard()
? () => {}
: model.navigateToPatchesSelector,
color: Theme.of(context).colorScheme.primary,
),
),