fix: better handle exchange url launching

This commit is contained in:
OmarHatem
2025-10-31 15:00:33 +01:00
parent 3f9840233a
commit f5119d262a
4 changed files with 40 additions and 18 deletions
+5 -1
View File
@@ -131,7 +131,11 @@ class WalletLoadingService {
alertContent: S.of(context).corrupted_seed_notice,
leftButtonText: S.of(context).cancel,
rightButtonText: S.of(context).show_seed,
actionLeftButton: () => Navigator.of(context).pop(),
actionLeftButton: () {
if (context.mounted && Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
},
actionRightButton: () => showSeedsPopup(context, msg),
);
});