Fix use of persistentSettings.testnet to nettype

This commit is contained in:
Doyle T 2018-05-02 11:29:47 +10:00
parent 7cea134352
commit 6147d81cc5
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ Rectangle {
console.log("Settings page loaded");
if(typeof daemonManager != "undefined"){
appWindow.daemonRunning = persistentSettings.useRemoteNode ? false : daemonManager.running(persistentSettings.testnet);
appWindow.daemonRunning = persistentSettings.useRemoteNode ? false : daemonManager.running(persistentSettings.nettype);
}
logLevelDropdown.update()

View file

@ -287,7 +287,7 @@ Rectangle {
if (result) {
var parts = result.split("|")
if (parts.length == 2) {
var address_ok = walletManager.addressValid(parts[1], appWindow.persistentSettings.testnet)
var address_ok = walletManager.addressValid(parts[1], appWindow.persistentSettings.nettype)
if (parts[0] === "true") {
if (address_ok) {
addressLine.text = parts[1]