mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
revealer: warning re version 0 now includes URL
This commit is contained in:
parent
f0868f5a51
commit
caae9f8a6a
2 changed files with 9 additions and 5 deletions
|
@ -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):
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue