aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateDevice1.qml
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2019-03-27 09:28:42 +0100
committerDusan Klinec <dusan.klinec@gmail.com>2019-04-06 14:52:14 +0200
commit1a2675b24669e51ac79324d2889494b95eddef62 (patch)
tree3482ffda535e8e80ff18879e055c1550cd6fe998 /wizard/WizardCreateDevice1.qml
parent19c2208dc447ccb5ba9ff990cbdd6ecf6b96f23d (diff)
downloadmonzero-gui-1a2675b24669e51ac79324d2889494b95eddef62.tar.gz
monzero-gui-1a2675b24669e51ac79324d2889494b95eddef62.tar.xz
monzero-gui-1a2675b24669e51ac79324d2889494b95eddef62.zip
async device open and create from device, passphrase
- passphrase entry on host added, requires early listener setting monero pull #5355 - wallet open and create from device shows splash to indicate possible long process - create from device is async to support passphrase entry
Diffstat (limited to 'wizard/WizardCreateDevice1.qml')
-rw-r--r--wizard/WizardCreateDevice1.qml19
1 files changed, 12 insertions, 7 deletions
diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml
index 9ad2ca33..81130aa1 100644
--- a/wizard/WizardCreateDevice1.qml
+++ b/wizard/WizardCreateDevice1.qml
@@ -207,13 +207,9 @@ Rectangle {
}
wizardController.walletOptionsRestoreHeight = _restoreHeight;
}
- var written = wizardController.createWalletFromDevice();
- if(written){
- wizardController.walletOptionsIsRecoveringFromDevice = true;
- wizardStateView.state = "wizardCreateWallet2";
- } else {
- errorMsg.text = qsTr("Error writing wallet from hardware device. Check application logs.") + translationManager.emptyString;
- }
+
+ wizardController.walletCreatedFromDevice.connect(onCreateWalletFromDeviceCompleted);
+ wizardController.createWalletFromDevice();
}
}
}
@@ -230,4 +226,13 @@ Rectangle {
walletInput.reset();
}
}
+
+ function onCreateWalletFromDeviceCompleted(written){
+ if(written){
+ wizardStateView.state = "wizardCreateWallet2";
+ } else {
+ errorMsg.text = qsTr("Error writing wallet from hardware device. Check application logs.") + translationManager.emptyString;
+ }
+ wizardController.walletCreatedFromDevice.disconnect(onCreateWalletFromDeviceCompleted);
+ }
}