mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-21 17:20:37 +02:00
close wallet before reopen
This commit is contained in:
parent
522b0671ad
commit
9700944b7f
8
main.qml
8
main.qml
@ -139,11 +139,19 @@ ApplicationWindow {
|
|||||||
middlePanel.paymentClicked.connect(handlePayment);
|
middlePanel.paymentClicked.connect(handlePayment);
|
||||||
// basicPanel.paymentClicked.connect(handlePayment);
|
// basicPanel.paymentClicked.connect(handlePayment);
|
||||||
|
|
||||||
|
// currentWallet is defined on daemon address change - close/reopen
|
||||||
|
if (currentWallet !== undefined) {
|
||||||
|
console.log("closing currentWallet")
|
||||||
|
walletManager.closeWallet(currentWallet);
|
||||||
|
}
|
||||||
|
|
||||||
// wallet already opened with wizard, we just need to initialize it
|
// wallet already opened with wizard, we just need to initialize it
|
||||||
if (typeof wizard.settings['wallet'] !== 'undefined') {
|
if (typeof wizard.settings['wallet'] !== 'undefined') {
|
||||||
|
console.log("using wizard wallet")
|
||||||
connectWallet(wizard.settings['wallet'])
|
connectWallet(wizard.settings['wallet'])
|
||||||
isNewWallet = true
|
isNewWallet = true
|
||||||
|
// We don't need the wizard wallet any more - delete to avoid conflict with daemon adress change
|
||||||
|
delete wizard.settings['wallet']
|
||||||
} else {
|
} else {
|
||||||
var wallet_path = walletPath();
|
var wallet_path = walletPath();
|
||||||
// console.log("opening wallet at: ", wallet_path, "with password: ", appWindow.password);
|
// console.log("opening wallet at: ", wallet_path, "with password: ", appWindow.password);
|
||||||
|
Loading…
Reference in New Issue
Block a user