|
@ -716,8 +716,8 @@ class ElectrumWindow(QMainWindow): |
|
|
menu.addAction(_("Copy Address"), lambda: self.app.clipboard().setText(addr)) |
|
|
menu.addAction(_("Copy Address"), lambda: self.app.clipboard().setText(addr)) |
|
|
menu.addAction(_("Copy URI"), lambda: self.app.clipboard().setText(str(URI))) |
|
|
menu.addAction(_("Copy URI"), lambda: self.app.clipboard().setText(str(URI))) |
|
|
if req.get('signature'): |
|
|
if req.get('signature'): |
|
|
menu.addAction(_("View signed URI"), lambda: self.view_signed_request(addr)) |
|
|
menu.addAction(_("Copy Signed URI"), lambda: self.view_signed_request(addr)) |
|
|
menu.addAction(_("Export as BIP70 file"), lambda: self.export_payment_request(addr)) #.setEnabled(amount is not None) |
|
|
menu.addAction(_("Save as BIP70 file"), lambda: self.export_payment_request(addr)) #.setEnabled(amount is not None) |
|
|
menu.addAction(_("Delete"), lambda: self.delete_payment_request(item)) |
|
|
menu.addAction(_("Delete"), lambda: self.delete_payment_request(item)) |
|
|
run_hook('receive_list_menu', menu, addr) |
|
|
run_hook('receive_list_menu', menu, addr) |
|
|
menu.exec_(self.receive_list.viewport().mapToGlobal(position)) |
|
|
menu.exec_(self.receive_list.viewport().mapToGlobal(position)) |
|
@ -774,12 +774,16 @@ class ElectrumWindow(QMainWindow): |
|
|
dialog.setWindowTitle(_("Signed Request")) |
|
|
dialog.setWindowTitle(_("Signed Request")) |
|
|
vbox = QVBoxLayout() |
|
|
vbox = QVBoxLayout() |
|
|
pr_e = ShowQRTextEdit(text=pr_text) |
|
|
pr_e = ShowQRTextEdit(text=pr_text) |
|
|
pr_e.setMaximumHeight(170) |
|
|
|
|
|
msg = _('This URI contains the payment request signed with your alias.') + '\n' + _('Note: This feature is experimental') |
|
|
|
|
|
vbox.addWidget(QLabel(msg)) |
|
|
|
|
|
vbox.addWidget(pr_e) |
|
|
|
|
|
pr_e.addCopyButton(self.app) |
|
|
pr_e.addCopyButton(self.app) |
|
|
vbox.addLayout(Buttons(CloseButton(dialog))) |
|
|
msg = ' '.join([_('The following URI contains your payment request signed with your OpenAlias key.'), |
|
|
|
|
|
_('The signature is a proof that the payment was requested by you.')]) |
|
|
|
|
|
l = QLabel(msg) |
|
|
|
|
|
l.setWordWrap(True) |
|
|
|
|
|
vbox.addWidget(l) |
|
|
|
|
|
vbox.addWidget(pr_e) |
|
|
|
|
|
msg = _('Note: This format is experimental and may not be supported by other Bitcoin clients.') |
|
|
|
|
|
vbox.addWidget(QLabel(msg)) |
|
|
|
|
|
vbox.addLayout(Buttons(CopyCloseButton(pr_e.text, self.app, dialog))) |
|
|
dialog.setLayout(vbox) |
|
|
dialog.setLayout(vbox) |
|
|
dialog.exec_() |
|
|
dialog.exec_() |
|
|
|
|
|
|
|
|