nettype comparison needs to be loose

This commit is contained in:
Sander Ferdinand
2018-03-27 20:41:15 +02:00
committed by moneromooo-monero
parent 3c24044736
commit 0bfff8844e
4 changed files with 8 additions and 10 deletions

View File

@@ -99,7 +99,6 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
// @TODO: customDecorations?
anchors.topMargin: (persistentSettings.customDecorations)? 50 : 0
RowLayout {
@@ -121,8 +120,8 @@ Rectangle {
Text {
id: testnetLabel
visible: persistentSettings.nettype
text: qsTr("Testnet") + translationManager.emptyString
visible: persistentSettings.nettype != NetworkType.MAINNET
text: (persistentSettings.nettype == NetworkType.TESTNET ? qsTr("Testnet") : qsTr("Stagenet")) + translationManager.emptyString
anchors.top: parent.top
anchors.topMargin: 8
anchors.left: parent.left