mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
qt Coins tab: better tooltip for frozen items
This commit is contained in:
parent
95965c8ef4
commit
3b7b81d82b
1 changed files with 4 additions and 1 deletions
|
@ -85,11 +85,14 @@ class UTXOList(MyTreeView):
|
|||
utxo_item[self.Columns.AMOUNT].setFont(QFont(MONOSPACE_FONT))
|
||||
utxo_item[self.Columns.OUTPOINT].setFont(QFont(MONOSPACE_FONT))
|
||||
utxo_item[self.Columns.ADDRESS].setData(name, Qt.UserRole)
|
||||
utxo_item[self.Columns.OUTPOINT].setToolTip(name)
|
||||
if self.wallet.is_frozen_address(address):
|
||||
utxo_item[self.Columns.ADDRESS].setBackground(ColorScheme.BLUE.as_color(True))
|
||||
utxo_item[self.Columns.ADDRESS].setToolTip(_('Address is frozen'))
|
||||
if self.wallet.is_frozen_coin(x):
|
||||
utxo_item[self.Columns.OUTPOINT].setBackground(ColorScheme.BLUE.as_color(True))
|
||||
utxo_item[self.Columns.OUTPOINT].setToolTip(f"{name}\n{_('Coin is frozen')}")
|
||||
else:
|
||||
utxo_item[self.Columns.OUTPOINT].setToolTip(name)
|
||||
self.model().insertRow(idx, utxo_item)
|
||||
|
||||
def get_selected_outpoints(self) -> Optional[List[str]]:
|
||||
|
|
Loading…
Add table
Reference in a new issue