mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Use view model variable hasRescan
instead [skip ci]
This commit is contained in:
parent
9a5244ffed
commit
27f242a5ee
2 changed files with 2 additions and 3 deletions
|
@ -36,8 +36,7 @@ class ConnectionSyncPage extends BasePage {
|
|||
handler: (context) => _presentReconnectAlert(context),
|
||||
),
|
||||
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
|
||||
if (dashboardViewModel.type != WalletType.bitcoin &&
|
||||
dashboardViewModel.type != WalletType.litecoin)
|
||||
if (dashboardViewModel.hasRescan)
|
||||
SettingsCellWithArrow(
|
||||
title: S.current.rescan,
|
||||
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
|
||||
|
|
|
@ -239,7 +239,7 @@ abstract class DashboardViewModelBase with Store {
|
|||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>
|
||||
wallet;
|
||||
|
||||
bool get hasRescan => wallet.type == WalletType.monero;
|
||||
bool get hasRescan => wallet.type == WalletType.monero || wallet.type == WalletType.haven;
|
||||
|
||||
BalanceViewModel balanceViewModel;
|
||||
|
||||
|
|
Loading…
Reference in a new issue