mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
GODT-1325: Add "already logged in" notification
This commit is contained in:
@ -57,6 +57,7 @@ QtObject {
|
||||
root.updateIsLatestVersion,
|
||||
root.loginConnectionError,
|
||||
root.onlyPaidUsers,
|
||||
root.alreadyLoggedIn,
|
||||
root.enableBeta,
|
||||
root.bugReportSendSuccess,
|
||||
root.bugReportSendError,
|
||||
@ -414,6 +415,29 @@ QtObject {
|
||||
]
|
||||
}
|
||||
|
||||
property Notification alreadyLoggedIn: Notification {
|
||||
text: qsTr("This account is already signed it.")
|
||||
icon: "./icons/ic-exclamation-circle-filled.svg"
|
||||
type: Notification.NotificationType.Info
|
||||
group: Notifications.Group.Configuration
|
||||
|
||||
Connections {
|
||||
target: root.backend
|
||||
onLoginAlreadyLoggedIn: {
|
||||
root.alreadyLoggedIn.active = true
|
||||
}
|
||||
}
|
||||
|
||||
action: [
|
||||
Action {
|
||||
text: qsTr("OK")
|
||||
onTriggered: {
|
||||
root.alreadyLoggedIn.active = false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
// Bug reports
|
||||
property Notification bugReportSendSuccess: Notification {
|
||||
text: qsTr("Thank you for the report. We'll get back to you as soon as we can.")
|
||||
|
||||
Reference in New Issue
Block a user