Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
49863187
Commit
49863187
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Open account
parent
8e7971cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cutecoin/core/app.py
+3
-3
3 additions, 3 deletions
src/cutecoin/core/app.py
with
3 additions
and
3 deletions
src/cutecoin/core/app.py
+
3
−
3
View file @
49863187
...
@@ -74,8 +74,8 @@ class Application(QObject):
...
@@ -74,8 +74,8 @@ class Application(QObject):
:param str name: The account name
:param str name: The account name
:return: The loaded account if it
'
s a success, else return None
:return: The loaded account if it
'
s a success, else return None
"""
"""
self
.
load_account
(
name
)
if
name
in
self
.
accounts
.
keys
():
if
name
in
self
.
accounts
.
keys
():
self
.
load_account
(
name
)
return
self
.
accounts
[
name
]
return
self
.
accounts
[
name
]
else
:
else
:
return
None
return
None
...
@@ -92,7 +92,7 @@ class Application(QObject):
...
@@ -92,7 +92,7 @@ class Application(QObject):
if
a
==
name
:
if
a
==
name
:
raise
NameAlreadyExists
(
a
)
raise
NameAlreadyExists
(
a
)
account
=
Account
.
create
(
name
)
account
=
Account
.
create
(
name
,
self
.
_identities_registry
)
return
account
return
account
...
@@ -412,7 +412,7 @@ class Application(QObject):
...
@@ -412,7 +412,7 @@ class Application(QObject):
if
self
.
current_account
:
if
self
.
current_account
:
self
.
stop_current_account
()
self
.
stop_current_account
()
self
.
app
.
save_registries
()
self
.
save_registries
()
def
get_last_version
(
self
):
def
get_last_version
(
self
):
url
=
QUrl
(
"
https://api.github.com/repos/ucoin-io/cutecoin/releases
"
)
url
=
QUrl
(
"
https://api.github.com/repos/ucoin-io/cutecoin/releases
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment