From db23b28ddd8eeb77476af4fe4f79cecd981bc85b Mon Sep 17 00:00:00 2001 From: fosse Date: Fri, 11 Aug 2023 09:30:40 -0400 Subject: [PATCH] disable account generation --- .../wallet_address_list_view_model.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/view_model/wallet_address_list/wallet_address_list_view_model.dart b/lib/view_model/wallet_address_list/wallet_address_list_view_model.dart index bc085d96f..5100f4ca0 100644 --- a/lib/view_model/wallet_address_list/wallet_address_list_view_model.dart +++ b/lib/view_model/wallet_address_list/wallet_address_list_view_model.dart @@ -136,10 +136,11 @@ abstract class WalletAddressListViewModelBase with Store { _wallet = appStore.wallet!, selectedCurrency = walletTypeToCryptoCurrency(appStore.wallet!.type), _cryptoNumberFormat = NumberFormat(_cryptoNumberPattern), - hasAccounts = appStore.wallet!.type == WalletType.monero || - appStore.wallet!.type == WalletType.haven || + hasAccounts = + appStore.wallet!.type == WalletType.monero || appStore.wallet!.type == WalletType.haven, + /* || appStore.wallet!.type == WalletType.nano || - appStore.wallet!.type == WalletType.banano, + appStore.wallet!.type == WalletType.banano,*/ // TODO: nano additional accounts disabled for now amount = '' { _init(); } @@ -275,9 +276,9 @@ abstract class WalletAddressListViewModelBase with Store { @computed bool get hasAddressList => _wallet.type == WalletType.monero || - _wallet.type == WalletType.haven || + _wallet.type == WalletType.haven;/* || _wallet.type == WalletType.nano || - _wallet.type == WalletType.banano; + _wallet.type == WalletType.banano;*/// TODO: nano accounts are disabled for now @computed bool get showElectrumAddressDisclaimer => @@ -299,7 +300,10 @@ abstract class WalletAddressListViewModelBase with Store { void _init() { _baseItems = []; - if (_wallet.type == WalletType.monero || _wallet.type == WalletType.haven || _wallet.type == WalletType.nano || _wallet.type == WalletType.banano) { + if (_wallet.type == WalletType.monero || + _wallet.type == WalletType.haven || + _wallet.type == WalletType.nano || + _wallet.type == WalletType.banano) { _baseItems.add(WalletAccountListHeader()); }