Merge pull request #806

7f4fec7 use testnet bool from wallet2 (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-08-23 21:22:10 +02:00
commit 7521472325
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -251,6 +251,12 @@ ApplicationWindow {
viewOnly = currentWallet.viewOnly;
// New wallets saves the testnet flag in keys file.
if(persistentSettings.testnet != currentWallet.testnet) {
console.log("Using testnet flag from keys file")
persistentSettings.testnet = currentWallet.testnet;
}
// connect handlers
currentWallet.refreshed.connect(onWalletRefresh)
currentWallet.updated.connect(onWalletUpdate)