Browse Source
qt RequestList: allow copying URI even if there is no bitcoin addr
(when there is LN part but no on-chain part)
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
electrum/gui/qt/request_list.py
|
|
@ -179,7 +179,7 @@ class RequestList(MyTreeView): |
|
|
|
menu = QMenu(self) |
|
|
|
if req.get_address(): |
|
|
|
menu.addAction(_("Copy Address"), lambda: self.parent.do_copy(req.get_address(), title='Bitcoin Address')) |
|
|
|
URI = self.wallet.get_request_URI(req) |
|
|
|
if URI := self.wallet.get_request_URI(req): |
|
|
|
menu.addAction(_("Copy URI"), lambda: self.parent.do_copy(URI, title='Bitcoin URI')) |
|
|
|
if req.is_lightning(): |
|
|
|
menu.addAction(_("Copy Lightning Request"), lambda: self.parent.do_copy(req.lightning_invoice, title='Lightning Request')) |
|
|
|