parent
bef3fea774
commit
266e10026d
|
@ -19,8 +19,6 @@ Column {
|
||||||
|
|
||||||
property bool browserMenuItemEnabled: false
|
property bool browserMenuItemEnabled: false
|
||||||
property bool walletMenuItemEnabled: false
|
property bool walletMenuItemEnabled: false
|
||||||
property bool appsMenuItemsEnabled: false
|
|
||||||
property bool communitiesMenuItemEnabled: false
|
|
||||||
|
|
||||||
signal menuItemClicked(var menu_item)
|
signal menuItemClicked(var menu_item)
|
||||||
|
|
||||||
|
@ -65,10 +63,9 @@ Column {
|
||||||
selected: Global.settingsSubsection === model.subsection
|
selected: Global.settingsSubsection === model.subsection
|
||||||
onClicked: root.menuItemClicked(model)
|
onClicked: root.menuItemClicked(model)
|
||||||
visible: {
|
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.browserSettings && root.browserMenuItemEnabled) ||
|
||||||
(model.subsection === Constants.settingsSubsection.communitiesSettings && root.communitiesMenuItemEnabled) ||
|
(model.subsection === Constants.settingsSubsection.wallet && root.walletMenuItemEnabled)
|
||||||
(model.subsection === Constants.settingsSubsection.wallet && root.appsMenuItemsEnabled)
|
|
||||||
}
|
}
|
||||||
badge.value: {
|
badge.value: {
|
||||||
switch (model.subsection) {
|
switch (model.subsection) {
|
||||||
|
|
|
@ -62,8 +62,6 @@ QtObject {
|
||||||
|
|
||||||
property bool browserMenuItemEnabled: localAccountSensitiveSettings.isBrowserEnabled
|
property bool browserMenuItemEnabled: localAccountSensitiveSettings.isBrowserEnabled
|
||||||
property bool walletMenuItemEnabled: localAccountSensitiveSettings.isWalletEnabled
|
property bool walletMenuItemEnabled: localAccountSensitiveSettings.isWalletEnabled
|
||||||
property bool appsMenuItemsEnabled: localAccountSensitiveSettings.isWalletEnabled || localAccountSensitiveSettings.communitiesEnabled
|
|
||||||
property bool communitiesMenuItemEnabled: localAccountSensitiveSettings.communitiesEnabled
|
|
||||||
|
|
||||||
property var communitiesModuleInst: communitiesModule
|
property var communitiesModuleInst: communitiesModule
|
||||||
property var communitiesList: communitiesModuleInst.model
|
property var communitiesList: communitiesModuleInst.model
|
||||||
|
|
|
@ -42,8 +42,6 @@ Item {
|
||||||
appsMenuItems: store.appsMenuItems
|
appsMenuItems: store.appsMenuItems
|
||||||
browserMenuItemEnabled: store.browserMenuItemEnabled
|
browserMenuItemEnabled: store.browserMenuItemEnabled
|
||||||
walletMenuItemEnabled: store.walletMenuItemEnabled
|
walletMenuItemEnabled: store.walletMenuItemEnabled
|
||||||
appsMenuItemsEnabled: store.appsMenuItemsEnabled
|
|
||||||
communitiesMenuItemEnabled: store.communitiesMenuItemEnabled
|
|
||||||
|
|
||||||
onMenuItemClicked: {
|
onMenuItemClicked: {
|
||||||
if (menu_item.subsection === Constants.settingsSubsection.backUpSeed) {
|
if (menu_item.subsection === Constants.settingsSubsection.backUpSeed) {
|
||||||
|
|
Loading…
Reference in New Issue