chore(@desktop/profile): Fix visibility behaviour of Apps section

Apps section with Browser settings are visible when
Experimental features/Dapp Browser toggle is on.

Ticket #4916
This commit is contained in:
Michal Iskierko 2022-03-04 12:09:45 +01:00 committed by Iuri Matias
parent 30b799a6ea
commit 5a6912d18e
1 changed files with 5 additions and 2 deletions

View File

@ -34,7 +34,7 @@ Column {
StatusListSectionHeadline {
text: qsTr("Apps")
visible: root.appsMenuItemsEnabled
visible: root.appsMenuItemsEnabled || root.browserMenuItemEnabled
}
Repeater {
@ -46,7 +46,10 @@ Column {
icon.name: model.icon
selected: Global.settingsSubsection === model.subsection
onClicked: root.menuItemClicked(model)
visible: root.appsMenuItemsEnabled
visible: {
(model.subsection === Constants.settingsSubsection.browserSettings && root.browserMenuItemEnabled) ||
(model.subsection === Constants.settingsSubsection.wallet && root.appsMenuItemsEnabled)
}
}
}