mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 13:14:32 +00:00
don't showLoading on fusion cancel or close if not running
This commit is contained in:
parent
a4891d8a64
commit
27f8f86b8a
1 changed files with 90 additions and 84 deletions
|
@ -40,7 +40,12 @@ class FusionDialogView extends ConsumerStatefulWidget {
|
|||
|
||||
class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
||||
Future<bool> _requestAndProcessCancel() async {
|
||||
final shouldCancel = await showDialog<bool?>(
|
||||
if (!ref
|
||||
.read(fusionProgressUIStateProvider(widget.walletId).notifier)
|
||||
.running) {
|
||||
return true;
|
||||
} else {
|
||||
bool? shouldCancel = await showDialog<bool?>(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (_) => DesktopDialog(
|
||||
|
@ -136,6 +141,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
Loading…
Reference in a new issue