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

Open account

parent 8e7971cd
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,8 @@ class Application(QObject):
:param str name: The account name
:return: The loaded account if it's a success, else return None
"""
self.load_account(name)
if name in self.accounts.keys():
self.load_account(name)
return self.accounts[name]
else:
return None
......@@ -92,7 +92,7 @@ class Application(QObject):
if a == name:
raise NameAlreadyExists(a)
account = Account.create(name)
account = Account.create(name, self._identities_registry)
return account
......@@ -412,7 +412,7 @@ class Application(QObject):
if self.current_account:
self.stop_current_account()
self.app.save_registries()
self.save_registries()
def get_last_version(self):
url = QUrl("https://api.github.com/repos/ucoin-io/cutecoin/releases")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment