mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
keys: ux improvements for hardware device wallet
This commit is contained in:
parent
97cd215491
commit
fbe1de1164
1 changed files with 8 additions and 1 deletions
|
@ -228,7 +228,7 @@ Rectangle {
|
||||||
secretSpendKey.text = (!currentWallet.viewOnly) ? currentWallet.secretSpendKey : ""
|
secretSpendKey.text = (!currentWallet.viewOnly) ? currentWallet.secretSpendKey : ""
|
||||||
publicSpendKey.text = currentWallet.publicSpendKey
|
publicSpendKey.text = currentWallet.publicSpendKey
|
||||||
|
|
||||||
seedText.text = currentWallet.seed
|
seedText.text = currentWallet.seed === "" ? qsTr("Mnemonic seed protected by hardware device.") + translationManager.emptyString : currentWallet.seed
|
||||||
|
|
||||||
if(typeof currentWallet != "undefined") {
|
if(typeof currentWallet != "undefined") {
|
||||||
viewOnlyQRCode.source = "image://qrcode/monero_wallet:" + currentWallet.address(0, 0) + "?view_key="+currentWallet.secretViewKey+"&height="+currentWallet.walletCreationHeight
|
viewOnlyQRCode.source = "image://qrcode/monero_wallet:" + currentWallet.address(0, 0) + "?view_key="+currentWallet.secretViewKey+"&height="+currentWallet.walletCreationHeight
|
||||||
|
@ -241,6 +241,13 @@ Rectangle {
|
||||||
seedText.text = qsTr("(View Only Wallet - No mnemonic seed available)") + translationManager.emptyString
|
seedText.text = qsTr("(View Only Wallet - No mnemonic seed available)") + translationManager.emptyString
|
||||||
secretSpendKey.text = qsTr("(View Only Wallet - No secret spend key available)") + translationManager.emptyString
|
secretSpendKey.text = qsTr("(View Only Wallet - No secret spend key available)") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
// hardware device wallet
|
||||||
|
if(currentWallet.seed === "") {
|
||||||
|
showFullQr.visible = false
|
||||||
|
viewOnlyQRCode.visible = true
|
||||||
|
showViewOnlyQr.visible = false
|
||||||
|
secretSpendKey.text = qsTr("(Hardware Device Wallet - No secret spend key available)") + translationManager.emptyString
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue