nettype comparison needs to be loose

This commit is contained in:
Sander Ferdinand
2018-03-27 21:34:30 +02:00
committed by moneromooo-monero
parent d2d6e3ad66
commit 408878290e
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ ColumnLayout {
backgroundMiningEnabled = wizard.settings["allow_background_mining"] === true,
backgroundMiningText = backgroundMiningEnabled ? qsTr("Enabled") : qsTr("Disabled"),
nettype = appWindow.persistentSettings.nettype,
networkText = nettype === NetworkType.TESTNET ? qsTr("Testnet") : nettype === NetworkType.STAGENET ? qsTr("Stagenet") : qsTr("Mainnet"),
networkText = nettype == NetworkType.TESTNET ? qsTr("Testnet") : nettype == NetworkType.STAGENET ? qsTr("Stagenet") : qsTr("Mainnet"),
restoreHeightEnabled = wizard.settings['restore_height'] !== undefined;
return "<table>"