aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-07-31 15:11:01 +0200
committerJaquee <jaquee.monero@gmail.com>2017-07-31 15:11:01 +0200
commit7f4fec777742329cc35fadbdd6f6057738c26bbd (patch)
tree1c368143ad4ba7212140ea8ddada304625c22f77
parentc68c31777693ae75b59c0d24c44195a97bbf0c1c (diff)
downloadmonzero-gui-7f4fec777742329cc35fadbdd6f6057738c26bbd.tar.gz
monzero-gui-7f4fec777742329cc35fadbdd6f6057738c26bbd.tar.xz
monzero-gui-7f4fec777742329cc35fadbdd6f6057738c26bbd.zip
use testnet bool from wallet2
-rw-r--r--main.qml6
1 files changed, 6 insertions, 0 deletions
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)