mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-14 20:36:32 +02:00
Do not open wallet from default location automatically
This commit is contained in:
parent
24a66c184d
commit
295348da01
16
main.qml
16
main.qml
@ -349,25 +349,13 @@ ApplicationWindow {
|
|||||||
currentWallet.history.refresh() // this will refresh model
|
currentWallet.history.refresh() // this will refresh model
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function walletsFound() {
|
function walletsFound() {
|
||||||
if (persistentSettings.wallet_path.length > 0) {
|
if (persistentSettings.wallet_path.length > 0) {
|
||||||
var lastOpenedExists = walletManager.walletExists(persistentSettings.wallet_path);
|
return walletManager.walletExists(persistentSettings.wallet_path);
|
||||||
if (lastOpenedExists) {
|
|
||||||
console.log("Last opened wallet exists in:",persistentSettings.wallet_path)
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if wallets exists in default path
|
|
||||||
var wallets = walletManager.findWallets(moneroAccountsDir);
|
|
||||||
if (wallets.length === 0) {
|
|
||||||
wallets = walletManager.findWallets(applicationDirectory);
|
|
||||||
}
|
|
||||||
return (wallets.length > 0 || lastOpenedExists);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function onTransactionCreated(pendingTransaction,address,paymentId,mixinCount){
|
function onTransactionCreated(pendingTransaction,address,paymentId,mixinCount){
|
||||||
console.log("Transaction created");
|
console.log("Transaction created");
|
||||||
hideProcessingSplash();
|
hideProcessingSplash();
|
||||||
|
Loading…
Reference in New Issue
Block a user