mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Use view model variable hasRescan instead [skip ci]
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user