Replaced Loader with StackView; Fixed payment id generation

This commit is contained in:
Ilya Kitaev
2016-10-02 23:54:05 +03:00
parent 0ff3fd3212
commit 56c3579501
2 changed files with 72 additions and 52 deletions

View File

@@ -43,14 +43,13 @@ Rectangle {
function updatePaymentId() {
var payment_id = appWindow.persistentSettings.payment_id
if (payment_id.length === 0) {
payment_id = appWindow.wallet.generatePaymentId()
if (typeof appWindow.currentWallet !== 'undefined') {
payment_id = appWindow.currentWallet.generatePaymentId()
appWindow.persistentSettings.payment_id = payment_id
appWindow.currentWallet.payment_id = payment_id
addressLine.text = appWindow.currentWallet.address
integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id)
}
paymentIdLine.text = payment_id
addressLine.text = appWindow.currentWallet.address
integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id)
}
Clipboard { id: clipboard }