diff options
| author | Jacob Brydolf <jacob@brydolf.net> | 2016-11-13 14:14:26 +0100 |
|---|---|---|
| committer | Jacob Brydolf <jacob@brydolf.net> | 2016-11-13 14:14:26 +0100 |
| commit | 295348da0197a7c51fafcdbbe4faecbceafdb942 (patch) | |
| tree | d5220c4d03a7a3c8f620a0df3c96686c9b240f2c | |
| parent | 24a66c184d206d6f6bea427c4d893d3bd2db24b6 (diff) | |
| download | monzero-gui-295348da0197a7c51fafcdbbe4faecbceafdb942.tar.gz monzero-gui-295348da0197a7c51fafcdbbe4faecbceafdb942.tar.xz monzero-gui-295348da0197a7c51fafcdbbe4faecbceafdb942.zip | |
Do not open wallet from default location automatically
| -rw-r--r-- | main.qml | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -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(); |
