fix: hide channel suggestions permanently
This commit is contained in:
parent
971dca5fb8
commit
c4f2ea0f14
|
@ -11,6 +11,7 @@ Rectangle {
|
||||||
id: emptyView
|
id: emptyView
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
visible: !appSettings.dontShowChannelSuggestions
|
||||||
|
|
||||||
height: suggestionContainer.height + inviteFriendsContainer.height + Style.current.padding * 2
|
height: suggestionContainer.height + inviteFriendsContainer.height + Style.current.padding * 2
|
||||||
border.color: Style.current.border
|
border.color: Style.current.border
|
||||||
|
@ -55,7 +56,7 @@ Rectangle {
|
||||||
anchors.fill: closeImg
|
anchors.fill: closeImg
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
emptyView.visible = false
|
appSettings.dontShowChannelSuggestions = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,7 @@ ApplicationWindow {
|
||||||
property bool allowNotificationsFromNonContacts: false
|
property bool allowNotificationsFromNonContacts: false
|
||||||
property var whitelistedUnfurlingSites: ({})
|
property var whitelistedUnfurlingSites: ({})
|
||||||
property bool neverAskAboutUnfurlingAgain: false
|
property bool neverAskAboutUnfurlingAgain: false
|
||||||
|
property bool dontShowChannelSuggestions: false
|
||||||
|
|
||||||
property int fontSize: Constants.fontSizeM
|
property int fontSize: Constants.fontSizeM
|
||||||
|
|
||||||
|
@ -141,7 +142,7 @@ ApplicationWindow {
|
||||||
property bool allowNotificationsFromNonContacts: defaultAppSettings.allowNotificationsFromNonContacts
|
property bool allowNotificationsFromNonContacts: defaultAppSettings.allowNotificationsFromNonContacts
|
||||||
property var whitelistedUnfurlingSites: defaultAppSettings.whitelistedUnfurlingSites
|
property var whitelistedUnfurlingSites: defaultAppSettings.whitelistedUnfurlingSites
|
||||||
property bool neverAskAboutUnfurlingAgain: defaultAppSettings.neverAskAboutUnfurlingAgain
|
property bool neverAskAboutUnfurlingAgain: defaultAppSettings.neverAskAboutUnfurlingAgain
|
||||||
|
property bool dontShowChannelSuggestions: defaultAppSettings.dontShowChannelSuggestions
|
||||||
property int fontSize: defaultAppSettings.fontSize
|
property int fontSize: defaultAppSettings.fontSize
|
||||||
|
|
||||||
// Browser settings
|
// Browser settings
|
||||||
|
|
Loading…
Reference in New Issue