forked from Public/monero-gui
Add support for creating hardware wallet
This commit is contained in:
8
main.qml
8
main.qml
@@ -222,6 +222,9 @@ ApplicationWindow {
|
||||
if (typeof wizard.m_wallet !== 'undefined') {
|
||||
console.log("using wizard wallet")
|
||||
//Set restoreHeight
|
||||
if (persistentSettings.restore_height == 0 && persistentSettings.is_recovering_from_device && walletManager.localDaemonSynced()) {
|
||||
persistentSettings.restore_height = walletManager.blockchainHeight() - 1;
|
||||
}
|
||||
if(persistentSettings.restore_height > 0){
|
||||
// We store restore height in own variable for performance reasons.
|
||||
restoreHeight = persistentSettings.restore_height
|
||||
@@ -331,7 +334,9 @@ ApplicationWindow {
|
||||
currentDaemonAddress = localDaemonAddress
|
||||
|
||||
console.log("initializing with daemon address: ", currentDaemonAddress)
|
||||
currentWallet.initAsync(currentDaemonAddress, 0, persistentSettings.is_recovering, persistentSettings.restore_height);
|
||||
currentWallet.initAsync(currentDaemonAddress, 0, persistentSettings.is_recovering, persistentSettings.is_recovering_from_device, persistentSettings.restore_height);
|
||||
// save wallet keys in case wallet settings have been changed in the init
|
||||
currentWallet.setPassword(walletPassword);
|
||||
}
|
||||
|
||||
function walletPath() {
|
||||
@@ -1014,6 +1019,7 @@ ApplicationWindow {
|
||||
property string payment_id
|
||||
property int restore_height : 0
|
||||
property bool is_recovering : false
|
||||
property bool is_recovering_from_device : false
|
||||
property bool customDecorations : true
|
||||
property string daemonFlags
|
||||
property int logLevel: 0
|
||||
|
||||
Reference in New Issue
Block a user