forked from Silverfish/proton-bridge
GODT-1549: Add notification when address list changes.
This commit is contained in:
@ -74,7 +74,8 @@ QtObject {
|
||||
root.resetBridge,
|
||||
root.deleteAccount,
|
||||
root.noKeychain,
|
||||
root.rebuildKeychain
|
||||
root.rebuildKeychain,
|
||||
root.addressChanged
|
||||
]
|
||||
|
||||
// Connection
|
||||
@ -940,4 +941,37 @@ QtObject {
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
property Notification addressChanged: Notification {
|
||||
title: qsTr("Address list changes")
|
||||
description: qsTr("The address list for your account has changed. You might need to reconfigure your email client.")
|
||||
brief: description
|
||||
icon: "./icons/ic-exclamation-circle-filled.svg"
|
||||
type: Notification.NotificationType.Warning
|
||||
group: Notifications.Group.Configuration
|
||||
|
||||
Connections {
|
||||
target: root.backend
|
||||
|
||||
onAddressChanged: {
|
||||
root.addressChanged.description = qsTr("The address list for your account %1 has changed. You might need to reconfigure your email client.").arg(address)
|
||||
root.addressChanged.active = true
|
||||
}
|
||||
|
||||
onAddressChangedLogout: {
|
||||
root.addressChanged.description = qsTr("The address list for your account %1 has changed. You have to reconfigure your email client.").arg(address)
|
||||
root.addressChanged.active = true
|
||||
}
|
||||
}
|
||||
|
||||
action: [
|
||||
Action {
|
||||
text: qsTr("OK")
|
||||
|
||||
onTriggered: {
|
||||
root.addressChanged.active = false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user