fix(settings): Fix visibility community settings view

Closes: #6100
This commit is contained in:
Boris Melnik 2022-06-17 12:29:14 +03:00
parent bef3fea774
commit 266e10026d
3 changed files with 3 additions and 10 deletions

View File

@ -19,8 +19,6 @@ Column {
property bool browserMenuItemEnabled: false
property bool walletMenuItemEnabled: false
property bool appsMenuItemsEnabled: false
property bool communitiesMenuItemEnabled: false
signal menuItemClicked(var menu_item)
@ -65,10 +63,9 @@ Column {
selected: Global.settingsSubsection === model.subsection
onClicked: root.menuItemClicked(model)
visible: {
(model.subsection !== Constants.settingsSubsection.browserSettings && model.subsection !== Constants.settingsSubsection.wallet && model.subsection !== Constants.settingsSubsection.communitiesSettings) ||
(model.subsection !== Constants.settingsSubsection.browserSettings && model.subsection !== Constants.settingsSubsection.wallet) ||
(model.subsection === Constants.settingsSubsection.browserSettings && root.browserMenuItemEnabled) ||
(model.subsection === Constants.settingsSubsection.communitiesSettings && root.communitiesMenuItemEnabled) ||
(model.subsection === Constants.settingsSubsection.wallet && root.appsMenuItemsEnabled)
(model.subsection === Constants.settingsSubsection.wallet && root.walletMenuItemEnabled)
}
badge.value: {
switch (model.subsection) {

View File

@ -62,8 +62,6 @@ QtObject {
property bool browserMenuItemEnabled: localAccountSensitiveSettings.isBrowserEnabled
property bool walletMenuItemEnabled: localAccountSensitiveSettings.isWalletEnabled
property bool appsMenuItemsEnabled: localAccountSensitiveSettings.isWalletEnabled || localAccountSensitiveSettings.communitiesEnabled
property bool communitiesMenuItemEnabled: localAccountSensitiveSettings.communitiesEnabled
property var communitiesModuleInst: communitiesModule
property var communitiesList: communitiesModuleInst.model

View File

@ -42,8 +42,6 @@ Item {
appsMenuItems: store.appsMenuItems
browserMenuItemEnabled: store.browserMenuItemEnabled
walletMenuItemEnabled: store.walletMenuItemEnabled
appsMenuItemsEnabled: store.appsMenuItemsEnabled
communitiesMenuItemEnabled: store.communitiesMenuItemEnabled
onMenuItemClicked: {
if (menu_item.subsection === Constants.settingsSubsection.backUpSeed) {