mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
do not run asynchronous validation in GUI thread.
This commit is contained in:
parent
34d4c6c9d8
commit
c17f64d236
1 changed files with 3 additions and 1 deletions
|
@ -113,8 +113,10 @@ class Plugin(BasePlugin):
|
||||||
self.win.payto_e.setFrozen(True)
|
self.win.payto_e.setFrozen(True)
|
||||||
if self.validate_dnssec(url):
|
if self.validate_dnssec(url):
|
||||||
self.win.payto_e.setGreen()
|
self.win.payto_e.setGreen()
|
||||||
|
self.validated = True
|
||||||
else:
|
else:
|
||||||
self.win.payto_e.setExpired()
|
self.win.payto_e.setExpired()
|
||||||
|
self.validated = False
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def before_send(self):
|
def before_send(self):
|
||||||
|
@ -134,7 +136,7 @@ class Plugin(BasePlugin):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self.validate_dnssec(url):
|
if not self.validated:
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
msgBox.setText(_('WARNING: the address ' + address + ' could not be validated via an additional security check, DNSSEC, and thus may not be correct.'))
|
msgBox.setText(_('WARNING: the address ' + address + ' could not be validated via an additional security check, DNSSEC, and thus may not be correct.'))
|
||||||
msgBox.setInformativeText(_('Do you wish to continue?'))
|
msgBox.setInformativeText(_('Do you wish to continue?'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue