mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
rename method
This commit is contained in:
parent
546c0cc57b
commit
3722aeca45
2 changed files with 2 additions and 5 deletions
|
@ -985,7 +985,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
self.fee_e.textChanged.connect(entry_changed)
|
self.fee_e.textChanged.connect(entry_changed)
|
||||||
|
|
||||||
self.invoices_label = QLabel(_('Invoices'))
|
self.invoices_label = QLabel(_('Invoices'))
|
||||||
self.invoices_list = MyTreeWidget(self, self.create_invoice_menu,
|
self.invoices_list = MyTreeWidget(self, self.invoices_list_menu,
|
||||||
[_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], 2)
|
[_('Date'), _('Requestor'), _('Description'), _('Amount'), _('Status')], 2)
|
||||||
self.invoices_list.header().setResizeMode(1, QHeaderView.Interactive)
|
self.invoices_list.header().setResizeMode(1, QHeaderView.Interactive)
|
||||||
self.invoices_list.setColumnWidth(1, 200)
|
self.invoices_list.setColumnWidth(1, 200)
|
||||||
|
@ -1561,7 +1561,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
self.payment_request_error()
|
self.payment_request_error()
|
||||||
|
|
||||||
|
|
||||||
def create_invoice_menu(self, position):
|
def invoices_list_menu(self, position):
|
||||||
item = self.invoices_list.itemAt(position)
|
item = self.invoices_list.itemAt(position)
|
||||||
if not item:
|
if not item:
|
||||||
return
|
return
|
||||||
|
|
|
@ -140,9 +140,6 @@ class Plugin(BasePlugin):
|
||||||
self.win = gui.main_window
|
self.win = gui.main_window
|
||||||
self.win.connect(self.win, SIGNAL('email:new_invoice'), self.new_invoice)
|
self.win.connect(self.win, SIGNAL('email:new_invoice'), self.new_invoice)
|
||||||
|
|
||||||
#self.send_button = EnterButton(_('Send'), self.send)
|
|
||||||
#self.win.receive_buttons.insertWidget(1, self.send_button)
|
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def receive_list_menu(self, menu, addr):
|
def receive_list_menu(self, menu, addr):
|
||||||
menu.addAction(_("Send via e-mail"), lambda: self.send(addr))
|
menu.addAction(_("Send via e-mail"), lambda: self.send(addr))
|
||||||
|
|
Loading…
Add table
Reference in a new issue