diff options
| author | Jacob Brydolf <jacob@brydolf.net> | 2016-10-05 00:18:50 +0200 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-10-10 00:18:27 +0300 |
| commit | 9700944b7f67dc3f0d6b9de4994250f27dfe5066 (patch) | |
| tree | b7e4cd52e577ec0dd73fe403ccdb8563818118bf | |
| parent | 522b0671adf946bb4def414f1bbdbca492cf0cd6 (diff) | |
| download | monzero-gui-9700944b7f67dc3f0d6b9de4994250f27dfe5066.tar.gz monzero-gui-9700944b7f67dc3f0d6b9de4994250f27dfe5066.tar.xz monzero-gui-9700944b7f67dc3f0d6b9de4994250f27dfe5066.zip | |
close wallet before reopen
| -rw-r--r-- | main.qml | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -139,11 +139,19 @@ ApplicationWindow { middlePanel.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 if (typeof wizard.settings['wallet'] !== 'undefined') { + console.log("using wizard wallet") connectWallet(wizard.settings['wallet']) isNewWallet = true + // We don't need the wizard wallet any more - delete to avoid conflict with daemon adress change + delete wizard.settings['wallet'] } else { var wallet_path = walletPath(); // console.log("opening wallet at: ", wallet_path, "with password: ", appWindow.password); |
