From 54e183a7f58760f2d9f5419378dd03418b2916a3 Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 22 Jun 2021 02:30:54 +0200 Subject: [PATCH] SettingsInfo: add portable mode to wallet mode --- pages/settings/SettingsInfo.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index eac48b07..31be040c 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -42,13 +42,15 @@ Rectangle { Layout.fillWidth: true property alias infoHeight: infoLayout.height property string walletModeString: { + var modeStr; if(appWindow.walletMode === 0){ - return qsTr("Simple mode") + translationManager.emptyString; + modeStr = qsTr("Simple mode") + translationManager.emptyString; } else if(appWindow.walletMode === 1){ - return qsTr("Simple mode") + " (bootstrap)" + translationManager.emptyString; + modeStr = qsTr("Simple mode") + " (bootstrap)" + translationManager.emptyString; } else if(appWindow.walletMode === 2){ - return "%1 (%2)".arg(qsTr("Advanced mode")).arg(persistentSettings.useRemoteNode ? qsTr("Remote node") : qsTr("Local node")) + translationManager.emptyString; + modeStr = "%1 (%2)".arg(qsTr("Advanced mode")).arg(persistentSettings.useRemoteNode ? qsTr("Remote node") : qsTr("Local node")) + translationManager.emptyString; } + return modeStr + (persistentSettings.portable ? ", %1".arg(qsTr("portable")) : ""); } ColumnLayout {