mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-29 04:56:44 +00:00
GODT-1752: Implement All Mail visibility in Qt6.
WIP: added gRPC call.
This commit is contained in:
@ -163,8 +163,8 @@ SettingsView {
|
||||
text: qsTr("Show All Mail")
|
||||
description: qsTr("Choose to list the All Mail folder in your local client.")
|
||||
type: SettingsItem.Toggle
|
||||
checked: root.backend.isAllMailVisible
|
||||
onClicked: root.notifications.askChangeAllMailVisibility(root.backend.isAllMailVisible)
|
||||
checked: Backend.isAllMailVisible
|
||||
onClicked: root.notifications.askChangeAllMailVisibility(Backend.isAllMailVisible)
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
@ -854,7 +854,8 @@ QtObject {
|
||||
|
||||
Connections {
|
||||
target: root
|
||||
onAskChangeAllMailVisibility: {
|
||||
|
||||
function onAskChangeAllMailVisibility(isVisibleNow) {
|
||||
root.changeAllMailVisibility.isVisibleNow = isVisibleNow
|
||||
root.changeAllMailVisibility.active = true
|
||||
}
|
||||
@ -867,7 +868,7 @@ QtObject {
|
||||
qsTr("Hide All Mail folder") :
|
||||
qsTr("Show All Mail folder")
|
||||
onTriggered: {
|
||||
root.backend.changeIsAllMailVisible(!root.changeAllMailVisibility.isVisibleNow)
|
||||
Backend.changeIsAllMailVisible(!root.changeAllMailVisibility.isVisibleNow)
|
||||
root.changeAllMailVisibility.active = false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user