parent
bef3fea774
commit
266e10026d
|
@ -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 && root.browserMenuItemEnabled) ||
|
||||
(model.subsection === Constants.settingsSubsection.communitiesSettings && root.communitiesMenuItemEnabled) ||
|
||||
(model.subsection === Constants.settingsSubsection.wallet && root.appsMenuItemsEnabled)
|
||||
(model.subsection !== Constants.settingsSubsection.browserSettings && model.subsection !== Constants.settingsSubsection.wallet) ||
|
||||
(model.subsection === Constants.settingsSubsection.browserSettings && root.browserMenuItemEnabled) ||
|
||||
(model.subsection === Constants.settingsSubsection.wallet && root.walletMenuItemEnabled)
|
||||
}
|
||||
badge.value: {
|
||||
switch (model.subsection) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue