fix(@desktop/communities): hide communities if not enabled

fixes #3152
This commit is contained in:
Anthony Laibe 2021-08-04 11:40:19 +02:00 committed by Iuri Matias
parent ca66d286f7
commit dc51cebaee
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ Item {
text: qsTrId("communities")
icon.name: "communities"
onTriggered: openPopup(communitiesPopupComponent)
enabled: appSettings.communitiesEnabled
}
}
}

View File

@ -130,7 +130,7 @@ StatusAppLayout {
}
}
navBarCommunityTabButtons.model: chatsModel.communities.joinedCommunities
navBarCommunityTabButtons.model: appSettings.communitiesEnabled && chatsModel.communities.joinedCommunities
navBarCommunityTabButtons.delegate: StatusNavBarTabButton {
onClicked: {
appMain.changeAppSection(Constants.chat)