From 81fd642735614f9a608d8721bc27e7b9940a443e Mon Sep 17 00:00:00 2001 From: sneurlax <sneurlax@gmail.com> Date: Thu, 25 Apr 2024 14:57:42 -0500 Subject: [PATCH] do not show multiple warnings when entering wallet remove WIP/original TorWarningDialog --- lib/widgets/wallet_card.dart | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/lib/widgets/wallet_card.dart b/lib/widgets/wallet_card.dart index 31a29fb68..bc1c80aa4 100644 --- a/lib/widgets/wallet_card.dart +++ b/lib/widgets/wallet_card.dart @@ -30,7 +30,6 @@ import 'package:stackwallet/wallets/wallet/wallet.dart'; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/cw_based_interface.dart'; import 'package:stackwallet/widgets/conditional_parent.dart'; import 'package:stackwallet/widgets/desktop/primary_button.dart'; -import 'package:stackwallet/widgets/desktop/secondary_button.dart'; import 'package:stackwallet/widgets/dialogs/basic_dialog.dart'; import 'package:stackwallet/widgets/rounded_white_container.dart'; import 'package:stackwallet/widgets/wallet_info_row/wallet_info_row.dart'; @@ -95,37 +94,6 @@ class SimpleWalletCard extends ConsumerWidget { final wallet = ref.read(pWallets).getWallet(walletId); - // If Tor enabled, show a warning if opening a wallet incompatible with Tor. - if (ref.read(prefsChangeNotifierProvider).useTor) { - if (!wallet.cryptoCurrency.torSupport) { - final shouldContinue = await showDialog<bool>( - context: context, - builder: (context) => BasicDialog( - title: "Warning! Tor not supported.", - message: "Stacky is not compatible with Tor." - "\n\nBy using it, you will leak your IP address. Are you sure you " - "want to continue?", - // A PrimaryButton widget: - leftButton: PrimaryButton( - label: "Cancel", - onPressed: () { - Navigator.of(context).pop(false); - }, - ), - rightButton: SecondaryButton( - label: "Continue", - onPressed: () { - Navigator.of(context).pop(true); - }, - ), - )) ?? - false; - if (!shouldContinue) { - return; - } - } - } - if (context.mounted) { final Future<void> loadFuture; if (wallet is CwBasedInterface) {