From 63b3ee3942cd70b21f1ecad01dfd341d276efef2 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 31 Mar 2021 15:33:55 -0400 Subject: [PATCH] toggle browser settings --- ui/app/AppLayouts/Profile/LeftTab/Menu.qml | 1 + ui/app/AppLayouts/Profile/LeftTab/constants.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Profile/LeftTab/Menu.qml b/ui/app/AppLayouts/Profile/LeftTab/Menu.qml index 6fa23a34af..4d03589206 100644 --- a/ui/app/AppLayouts/Profile/LeftTab/Menu.qml +++ b/ui/app/AppLayouts/Profile/LeftTab/Menu.qml @@ -50,6 +50,7 @@ ScrollView { text: modelData .text source: "../../../img/profile/" + modelData.filename active: profileMenu.profileCurrentIndex === modelData.id + visible: modelData.ifEnabled !== "browser" || appSettings.browserEnabled Layout.fillWidth: true width: profileMenu.width onClicked: function () { diff --git a/ui/app/AppLayouts/Profile/LeftTab/constants.js b/ui/app/AppLayouts/Profile/LeftTab/constants.js index 8c3a57dfbb..79cb2c589d 100644 --- a/ui/app/AppLayouts/Profile/LeftTab/constants.js +++ b/ui/app/AppLayouts/Profile/LeftTab/constants.js @@ -59,7 +59,8 @@ var settingsMenuButtons = [{ }, { "id": BROWSER_SETTINGS, "text": qsTr("Browser settings"), - "filename": "../compassActive.svg" + "filename": "../compassActive.svg", + "ifEnabled": "browser" }, { "id": ADVANCED, "text": qsTr("Advanced"),