From e8796a893b475bd5fc77bfa31707970449ddff10 Mon Sep 17 00:00:00 2001 From: saiy2k Date: Thu, 12 Sep 2024 22:25:32 +0530 Subject: [PATCH] Fix for #306. Actual issue, the suggestion overlay not getting hidden on 24 words list --- lib/import/recover.dart | 1 + lib/network/bloc/network_cubit.dart | 1 - lib/network/popup.dart | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/import/recover.dart b/lib/import/recover.dart index 647c478e..a217d497 100644 --- a/lib/import/recover.dart +++ b/lib/import/recover.dart @@ -388,6 +388,7 @@ class _ImportWordTextFieldState extends State { }); widget.focusNode.unfocus(); widget.returnClicked(widget.index); + hideOverlay(); }, onEnter: () { context.read().clearUntappedWords(); diff --git a/lib/network/bloc/network_cubit.dart b/lib/network/bloc/network_cubit.dart index 484bb002..2e51d5b6 100644 --- a/lib/network/bloc/network_cubit.dart +++ b/lib/network/bloc/network_cubit.dart @@ -376,7 +376,6 @@ class NetworkCubit extends Cubit { 'Pls check testnet electrum URL. Cannot connect to electrum', ), ); - return; } final index = diff --git a/lib/network/popup.dart b/lib/network/popup.dart index 0289a25d..585a2f66 100644 --- a/lib/network/popup.dart +++ b/lib/network/popup.dart @@ -36,6 +36,7 @@ class NetworkPopup extends StatelessWidget { current.networkConnected == true && current.errLoadingNetworks.isEmpty, listener: (context, state) async { + await Future.delayed(const Duration(seconds: 2)); context.pop(); }, child: BlocProvider.value(