diff --git a/src/app/wallet/views/account_list.nim b/src/app/wallet/views/account_list.nim index 2e552eaa05..924ed6cecb 100644 --- a/src/app/wallet/views/account_list.nim +++ b/src/app/wallet/views/account_list.nim @@ -15,6 +15,7 @@ type Balance = UserRole + 4 FiatBalance = UserRole + 5 Assets = UserRole + 6 + WalletType = UserRole + 7 QtObject: type AccountList* = ref object of QAbstractListModel @@ -92,6 +93,7 @@ QtObject: of AccountRoles.Balance: result = newQVariant(account.balance) of AccountRoles.FiatBalance: result = newQVariant(fmt"{account.realFiatBalance:>.2f}") of AccountRoles.Assets: result = newQVariant(accountView.assets) + of AccountRoles.WalletType: result = newQVariant(account.walletType) method roleNames(self: AccountList): Table[int, string] = { AccountRoles.Name.int:"name", @@ -99,7 +101,8 @@ QtObject: AccountRoles.Color.int:"iconColor", AccountRoles.Balance.int:"balance", AccountRoles.FiatBalance.int:"fiatBalance", - AccountRoles.Assets.int:"assets" }.toTable + AccountRoles.Assets.int:"assets", + AccountRoles.WalletType.int:"walletType" }.toTable proc addAccountToList*(self: AccountList, account: WalletAccount) = if account.iconColor == "": diff --git a/ui/shared/AccountSelector.qml b/ui/shared/AccountSelector.qml index 85477d55ae..359f78e9de 100644 --- a/ui/shared/AccountSelector.qml +++ b/ui/shared/AccountSelector.qml @@ -160,6 +160,7 @@ Item { id: menuItem MenuItem { id: itemContainer + visible: walletType !== 'watch' property bool isFirstItem: index === 0 property bool isLastItem: index === accounts.rowCount() - 1 @@ -169,7 +170,7 @@ Item { } } - height: accountName.height + 14 + accountAddress.height + 14 + height: walletType === 'watch' ? 0 : (accountName.height + 14 + accountAddress.height + 14) SVGImage { id: iconImg anchors.left: parent.left