mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
qt request_list: minor fix for context menu
This commit is contained in:
parent
64b2844e81
commit
f0b4d1ecce
1 changed files with 3 additions and 5 deletions
|
@ -173,7 +173,6 @@ class RequestList(MyTreeView):
|
|||
return
|
||||
addr = item.data(ROLE_RHASH_OR_ADDR)
|
||||
request_type = item.data(ROLE_REQUEST_TYPE)
|
||||
menu = None
|
||||
assert request_type in [REQUEST_TYPE_BITCOIN, REQUEST_TYPE_LN]
|
||||
if request_type == REQUEST_TYPE_BITCOIN:
|
||||
req = self.wallet.receive_requests.get(addr)
|
||||
|
@ -186,10 +185,9 @@ class RequestList(MyTreeView):
|
|||
column_title = self.model().horizontalHeaderItem(column).text()
|
||||
column_data = self.model().itemFromIndex(idx).text()
|
||||
menu = QMenu(self)
|
||||
if column != self.Columns.TYPE:
|
||||
if column == self.Columns.AMOUNT:
|
||||
column_data = column_data.strip()
|
||||
menu.addAction(_("Copy {}").format(column_title), lambda: self.parent.do_copy(column_title, column_data))
|
||||
if column == self.Columns.AMOUNT:
|
||||
column_data = column_data.strip()
|
||||
menu.addAction(_("Copy {}").format(column_title), lambda: self.parent.do_copy(column_title, column_data))
|
||||
if request_type == REQUEST_TYPE_BITCOIN:
|
||||
self.create_menu_bitcoin_payreq(menu, addr)
|
||||
elif request_type == REQUEST_TYPE_LN:
|
||||
|
|
Loading…
Add table
Reference in a new issue