fix: hide channel suggestions permanently

This commit is contained in:
Richard Ramos 2020-11-26 11:28:31 -04:00 committed by Iuri Matias
parent 971dca5fb8
commit c4f2ea0f14
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Rectangle {
id: emptyView
Layout.fillHeight: true
Layout.fillWidth: true
visible: !appSettings.dontShowChannelSuggestions
height: suggestionContainer.height + inviteFriendsContainer.height + Style.current.padding * 2
border.color: Style.current.border
@ -55,7 +56,7 @@ Rectangle {
anchors.fill: closeImg
cursorShape: Qt.PointingHandCursor
onClicked: {
emptyView.visible = false
appSettings.dontShowChannelSuggestions = true
}
}

View File

@ -106,6 +106,7 @@ ApplicationWindow {
property bool allowNotificationsFromNonContacts: false
property var whitelistedUnfurlingSites: ({})
property bool neverAskAboutUnfurlingAgain: false
property bool dontShowChannelSuggestions: false
property int fontSize: Constants.fontSizeM
@ -141,7 +142,7 @@ ApplicationWindow {
property bool allowNotificationsFromNonContacts: defaultAppSettings.allowNotificationsFromNonContacts
property var whitelistedUnfurlingSites: defaultAppSettings.whitelistedUnfurlingSites
property bool neverAskAboutUnfurlingAgain: defaultAppSettings.neverAskAboutUnfurlingAgain
property bool dontShowChannelSuggestions: defaultAppSettings.dontShowChannelSuggestions
property int fontSize: defaultAppSettings.fontSize
// Browser settings