mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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> {
|
class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
||||||
Future<bool> _requestAndProcessCancel() async {
|
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,
|
context: context,
|
||||||
barrierDismissible: false,
|
barrierDismissible: false,
|
||||||
builder: (_) => DesktopDialog(
|
builder: (_) => DesktopDialog(
|
||||||
|
@ -136,6 +141,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
Loading…
Reference in a new issue