diff --git a/main.qml b/main.qml index cd962ca8..f9f63d52 100644 --- a/main.qml +++ b/main.qml @@ -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)