mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +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),
|
handler: (context) => _presentReconnectAlert(context),
|
||||||
),
|
),
|
||||||
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
|
StandardListSeparator(padding: EdgeInsets.symmetric(horizontal: 24)),
|
||||||
if (dashboardViewModel.type != WalletType.bitcoin &&
|
if (dashboardViewModel.hasRescan)
|
||||||
dashboardViewModel.type != WalletType.litecoin)
|
|
||||||
SettingsCellWithArrow(
|
SettingsCellWithArrow(
|
||||||
title: S.current.rescan,
|
title: S.current.rescan,
|
||||||
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
|
handler: (context) => Navigator.of(context).pushNamed(Routes.rescan),
|
||||||
|
|
|
@ -239,7 +239,7 @@ abstract class DashboardViewModelBase with Store {
|
||||||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>
|
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>
|
||||||
wallet;
|
wallet;
|
||||||
|
|
||||||
bool get hasRescan => wallet.type == WalletType.monero;
|
bool get hasRescan => wallet.type == WalletType.monero || wallet.type == WalletType.haven;
|
||||||
|
|
||||||
BalanceViewModel balanceViewModel;
|
BalanceViewModel balanceViewModel;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue