Browse Source

revealer: warning re version 0 now includes URL

3.3.3.1
SomberNight 6 years ago
parent
commit
caae9f8a6a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/util.py
  2. 12
      electrum/plugins/revealer/qt.py

2
electrum/gui/qt/util.py

@ -216,7 +216,7 @@ class MessageBoxMixin(object):
d = QMessageBox(icon, title, str(text), buttons, parent) d = QMessageBox(icon, title, str(text), buttons, parent)
d.setWindowModality(Qt.WindowModal) d.setWindowModality(Qt.WindowModal)
d.setDefaultButton(defaultButton) d.setDefaultButton(defaultButton)
d.setTextInteractionFlags(Qt.TextSelectableByMouse) d.setTextInteractionFlags(Qt.TextSelectableByMouse | Qt.LinksAccessibleByMouse)
return d.exec_() return d.exec_()
class WindowModalDialog(QDialog, MessageBoxMixin): class WindowModalDialog(QDialog, MessageBoxMixin):

12
electrum/plugins/revealer/qt.py

@ -201,10 +201,14 @@ class Plugin(RevealerPlugin):
def warn_old_revealer(self): def warn_old_revealer(self):
if self.versioned_seed.version == '0': if self.versioned_seed.version == '0':
self.d.show_warning(''.join( link = "https://revealer.cc/revealer-warning-and-upgrade/"
["<b>", _("Warning"), ": </b>", self.d.show_warning(("<b>{warning}: </b>{ver0}<br>"
_("Revealers starting with 0 are not secure due to a vulnerability."), ' ', "{url}<br>"
_("Proceed at your own risk.")])) "{risk}")
.format(warning=_("Warning"),
ver0=_("Revealers starting with 0 are not secure due to a vulnerability."),
url=_("More info at: {}").format(f'<a href="{link}">{link}</a>'),
risk=_("Proceed at your own risk.")))
def cypherseed_dialog(self, window): def cypherseed_dialog(self, window):
self.warn_old_revealer() self.warn_old_revealer()

Loading…
Cancel
Save