Skip to content
Snippets Groups Projects
Commit 0db23760 authored by inso's avatar inso
Browse files

Merge branch 'dev0113' of https://github.com/ucoin-io/sakia into dev0113

parents b608cdbe 4418abd7
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ class Account(QObject):
loading_progressed = pyqtSignal(Community, int, int)
loading_finished = pyqtSignal(Community, list)
wallets_changed = pyqtSignal()
certification_accepted = pyqtSignal()
def __init__(self, salt, pubkey, name, communities, wallets, contacts, identities_registry):
"""
......@@ -496,6 +497,8 @@ class Account(QObject):
for r in responses:
if r.status == 200:
result = (True, (yield from r.json()))
# signal certification to all listeners
self.certification_accepted.emit()
elif not result[0]:
result = (False, (yield from r.text()))
else:
......
......@@ -69,8 +69,12 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
cancel_once_task(self, self.reset)
def change_account(self, account, password_asker):
if self.account is not None:
self.account.certification_accepted.disconnect(self.refresh)
self.account = account
self.password_asker = password_asker
if self.account is not None:
self.account.certification_accepted.connect(self.refresh)
def change_community(self, community):
self._auto_refresh(community)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment