Do not open wallet from default location automatically

This commit is contained in:
Jacob Brydolf 2016-11-13 14:14:26 +01:00
parent 24a66c184d
commit 295348da01
No known key found for this signature in database
GPG Key ID: DE46246550D2F3C5
1 changed files with 2 additions and 14 deletions

View File

@ -349,25 +349,13 @@ ApplicationWindow {
currentWallet.history.refresh() // this will refresh model
}
function walletsFound() {
if (persistentSettings.wallet_path.length > 0) {
var lastOpenedExists = walletManager.walletExists(persistentSettings.wallet_path);
if (lastOpenedExists) {
console.log("Last opened wallet exists in:",persistentSettings.wallet_path)
}
}
// Check if wallets exists in default path
var wallets = walletManager.findWallets(moneroAccountsDir);
if (wallets.length === 0) {
wallets = walletManager.findWallets(applicationDirectory);
return walletManager.walletExists(persistentSettings.wallet_path);
}
return (wallets.length > 0 || lastOpenedExists);
return false;
}
function onTransactionCreated(pendingTransaction,address,paymentId,mixinCount){
console.log("Transaction created");
hideProcessingSplash();