mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Qml app avoid multiple default identity creation burst
This commit is contained in:
parent
2c4cbd529a
commit
943a4213fb
1 changed files with 5 additions and 1 deletions
|
@ -63,6 +63,7 @@ Item
|
|||
rsApi.request("/identity/*/", "", refreshContactsCallback)
|
||||
}
|
||||
|
||||
property bool _refreshOwnCallback_creating: false
|
||||
function refreshOwnCallback(par)
|
||||
{
|
||||
console.log("contactsView.refreshOwnCallback(par)", visible)
|
||||
|
@ -75,8 +76,11 @@ Item
|
|||
contactsView.own_gxs_id = json.data[0].gxs_id
|
||||
contactsView.own_nick = json.data[0].name
|
||||
}
|
||||
else
|
||||
else if (!_refreshOwnCallback_creating)
|
||||
{
|
||||
console.log("refreshOwnCallback(par)", "creating new identity" )
|
||||
_refreshOwnCallback_creating = true
|
||||
|
||||
var jsonData = { "name": mainWindow.pgp_name, "pgp_linked": false }
|
||||
rsApi.request(
|
||||
"/identity/create_identity",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue