Browse Source

Merge pull request #7104 from SomberNight/202103_qt_receive_tab_expiration_help

qt receive tab: change "Expires after" label and help text
patch-4
ThomasV 4 years ago
committed by GitHub
parent
commit
3e3cfd91a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      electrum/gui/qt/main_window.py

14
electrum/gui/qt/main_window.py

@ -1085,13 +1085,17 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
def on_expiry(i): def on_expiry(i):
self.config.set_key('request_expiry', evl_keys[i]) self.config.set_key('request_expiry', evl_keys[i])
self.expires_combo.currentIndexChanged.connect(on_expiry) self.expires_combo.currentIndexChanged.connect(on_expiry)
msg = ' '.join([ msg = ''.join([
_('Expiration date of your request.'), _('Expiration date of your request.'), ' ',
_('This information is seen by the recipient if you send them a signed payment request.'), _('This information is seen by the recipient if you send them a signed payment request.'),
_('Expired requests have to be deleted manually from your list, in order to free the corresponding Bitcoin addresses.'), '\n\n',
_('The bitcoin address never expires and will always be part of this electrum wallet.'), _('For on-chain requests, the address gets reserved until expiration. After that, it might get reused.'), ' ',
_('The bitcoin address never expires and will always be part of this electrum wallet.'), ' ',
_('You can reuse a bitcoin address any number of times but it is not good for your privacy.'),
'\n\n',
_('For Lightning requests, payments will not be accepted after the expiration.'),
]) ])
grid.addWidget(HelpLabel(_('Expires after'), msg), 2, 0) grid.addWidget(HelpLabel(_('Expires after') + ' (?)', msg), 2, 0)
grid.addWidget(self.expires_combo, 2, 1) grid.addWidget(self.expires_combo, 2, 1)
self.expires_label = QLineEdit('') self.expires_label = QLineEdit('')
self.expires_label.setReadOnly(1) self.expires_label.setReadOnly(1)

Loading…
Cancel
Save