mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
do not show multiple warnings when entering wallet
remove WIP/original TorWarningDialog
This commit is contained in:
parent
d17a66b2fc
commit
81fd642735
1 changed files with 0 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue