File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66from PyQt6 .QtWidgets import QLabel , QVBoxLayout , QGridLayout , QPushButton
77from PyQt6 .QtWidgets import QTreeWidget , QTreeWidgetItem , QHeaderView
88
9+ from electrum_aionostr .util import from_nip19
10+
911from electrum .i18n import _
1012from electrum .util import NotEnoughFunds , NoDynamicFeeEstimates , UserCancelled
1113from electrum .bitcoin import DummyAddress
@@ -268,9 +270,8 @@ def update(self):
268270 self .server_fee_label .setText (server_fee_str )
269271 self .server_fee_label .repaint () # macOS hack for #6269
270272 self .needs_tx_update = True
271-
272- current_offer = transport .get_offer (self .config .SWAPSERVER_NPUB ) if not self .config .SWAPSERVER_URL else None
273- pubkey = current_offer .server_pubkey if current_offer else ''
273+ # update icon
274+ pubkey = from_nip19 (self .config .SWAPSERVER_NPUB )['object' ].hex () if self .config .SWAPSERVER_NPUB else ''
274275 self .server_button .setIcon (SwapServerDialog ._pubkey_to_q_icon (pubkey ))
275276
276277 def get_client_swap_limits_sat (self ) -> Tuple [int , int ]:
You can’t perform that action at this time.
0 commit comments