GODT-1741: GUI and CLI settings to change visibility of All Mail folder.

This commit is contained in:
Jakub
2022-07-28 12:35:03 +02:00
parent 8b39ea4acb
commit 76469969f3
6 changed files with 79 additions and 0 deletions

View File

@ -155,6 +155,9 @@ type QMLBackend struct {
_ func() `signal:apiCertIssue`
_ func(userID string) `signal:userChanged`
_ bool `property:"isAllMailDisabled"`
_ func(isDisabled bool) `slot:"changeIsAllMailDisabled"`
}
func (q *QMLBackend) setup(f *FrontendQt) {
@ -304,4 +307,11 @@ func (q *QMLBackend) setup(f *FrontendQt) {
f.changeKeychain(k)
}()
})
q.SetIsAllMailDisabled(!f.bridge.IsAllMailVisible())
q.ConnectChangeIsAllMailDisabled(func(isDisabled bool) {
f.bridge.SetIsAllMailVisible(!isDisabled)
f.qml.SetIsAllMailDisabled(isDisabled)
})
}