mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #15904 from howard-stearns/new-account-wallets-in-simplified-ui
new-account wallets in simplified UI
This commit is contained in:
commit
7eaa29c147
1 changed files with 14 additions and 4 deletions
|
@ -76,10 +76,20 @@ Rectangle {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (walletStatus === 5) {
|
switch (walletStatus) {
|
||||||
topBarInventoryModel.getFirstPage();
|
case 1:
|
||||||
} else {
|
var randomNumber = Math.floor(Math.random() * 34) + 1;
|
||||||
// Show some error to the user
|
var securityImagePath = "images/" + randomNumber.toString().padStart(2, '0') + ".jpg";
|
||||||
|
Commerce.getWalletAuthenticatedStatus(); // before writing security image, ensures that salt/account password is set.
|
||||||
|
Commerce.chooseSecurityImage(securityImagePath);
|
||||||
|
Commerce.generateKeyPair()
|
||||||
|
Commerce.getWalletStatus();
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
topBarInventoryModel.getFirstPage();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.log('WARNING: SimplifiedTopBar.qml walletStatusResult:', walletStatus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue