Browse Source
revealer: warning re version 0 now includes URL
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
9 additions and
5 deletions
-
electrum/gui/qt/util.py
-
electrum/plugins/revealer/qt.py
|
|
@ -216,7 +216,7 @@ class MessageBoxMixin(object): |
|
|
|
d = QMessageBox(icon, title, str(text), buttons, parent) |
|
|
|
d.setWindowModality(Qt.WindowModal) |
|
|
|
d.setDefaultButton(defaultButton) |
|
|
|
d.setTextInteractionFlags(Qt.TextSelectableByMouse) |
|
|
|
d.setTextInteractionFlags(Qt.TextSelectableByMouse | Qt.LinksAccessibleByMouse) |
|
|
|
return d.exec_() |
|
|
|
|
|
|
|
class WindowModalDialog(QDialog, MessageBoxMixin): |
|
|
|
|
|
@ -201,10 +201,14 @@ class Plugin(RevealerPlugin): |
|
|
|
|
|
|
|
def warn_old_revealer(self): |
|
|
|
if self.versioned_seed.version == '0': |
|
|
|
self.d.show_warning(''.join( |
|
|
|
["<b>", _("Warning"), ": </b>", |
|
|
|
_("Revealers starting with 0 are not secure due to a vulnerability."), ' ', |
|
|
|
_("Proceed at your own risk.")])) |
|
|
|
link = "https://revealer.cc/revealer-warning-and-upgrade/" |
|
|
|
self.d.show_warning(("<b>{warning}: </b>{ver0}<br>" |
|
|
|
"{url}<br>" |
|
|
|
"{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): |
|
|
|
self.warn_old_revealer() |
|
|
|