mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-18 13:27:25 -04:00
nettype comparison needs to be loose
This commit is contained in:
committed by
moneromooo-monero
parent
d2d6e3ad66
commit
408878290e
2
main.qml
2
main.qml
@@ -1018,7 +1018,7 @@ ApplicationWindow {
|
|||||||
property bool allow_background_mining : false
|
property bool allow_background_mining : false
|
||||||
property bool miningIgnoreBattery : true
|
property bool miningIgnoreBattery : true
|
||||||
property var nettype: NetworkType.MAINNET
|
property var nettype: NetworkType.MAINNET
|
||||||
property string daemon_address: nettype === NetworkType.TESTNET ? "localhost:28081" : nettype === NetworkType.STAGENET ? "localhost:38081" : "localhost:18081"
|
property string daemon_address: nettype == NetworkType.TESTNET ? "localhost:28081" : nettype == NetworkType.STAGENET ? "localhost:38081" : "localhost:18081"
|
||||||
property string payment_id
|
property string payment_id
|
||||||
property int restore_height : 0
|
property int restore_height : 0
|
||||||
property bool is_recovering : false
|
property bool is_recovering : false
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ ColumnLayout {
|
|||||||
backgroundMiningEnabled = wizard.settings["allow_background_mining"] === true,
|
backgroundMiningEnabled = wizard.settings["allow_background_mining"] === true,
|
||||||
backgroundMiningText = backgroundMiningEnabled ? qsTr("Enabled") : qsTr("Disabled"),
|
backgroundMiningText = backgroundMiningEnabled ? qsTr("Enabled") : qsTr("Disabled"),
|
||||||
nettype = appWindow.persistentSettings.nettype,
|
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;
|
restoreHeightEnabled = wizard.settings['restore_height'] !== undefined;
|
||||||
|
|
||||||
return "<table>"
|
return "<table>"
|
||||||
|
|||||||
Reference in New Issue
Block a user