diff --git a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml index 91fb91159b..37ae053aa9 100644 --- a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml @@ -31,18 +31,15 @@ Item { anchors.topMargin: 20 anchors.left: parent.left anchors.leftMargin: 24 - Component.onCompleted: { - walletBtn.enabled = false - } StyledText { //% "Wallet Tab" text: qsTrId("wallet-tab") } Switch { - checked: walletBtn.enabled + checked: appSettings.walletEnabled onCheckedChanged: function(value) { - walletBtn.enabled = this.checked + appSettings.walletEnabled = this.checked } } StyledText { diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 8774d6d89a..88635fd6d5 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -78,7 +78,7 @@ RowLayout { TabButton { id: walletBtn - enabled: isExperimental === "1" + enabled: isExperimental === "1" || rowLayout.appSettings.walletEnabled visible: this.enabled width: 40 height: this.enabled ? 40 : 0 diff --git a/ui/main.qml b/ui/main.qml index d424f0637a..1cee06c6b3 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -66,6 +66,7 @@ ApplicationWindow { property var chatSplitView property var walletSplitView property var profileSplitView + property bool walletEnabled: false property bool displayChatImages: false property bool compactMode property string locale: "en"