Browse Source
qt Coins tab: better tooltip for frozen items
regtest_lnd
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
4 additions and
1 deletions
-
electrum/gui/qt/utxo_list.py
|
|
@ -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]]: |
|
|
|