GODT-1478: Add GUI settings for keychain selection.

This commit is contained in:
Jakub
2022-01-10 14:57:13 +01:00
parent df601ecbbd
commit 437b7a4cfe
9 changed files with 211 additions and 24 deletions

View File

@ -72,7 +72,8 @@ QtObject {
root.disableLocalCache,
root.enableLocalCache,
root.resetBridge,
root.deleteAccount
root.deleteAccount,
root.noKeychain
]
// Connection
@ -866,4 +867,31 @@ QtObject {
}
]
}
property Notification noKeychain: Notification {
title: qsTr("No keychain available")
description: qsTr("Bridge is not able to detected a supported password manager (pass, gnome-keyring). Please install and setup supported password manager and restart the application.")
brief: title
icon: "./icons/ic-exclamation-circle-filled.svg"
type: Notification.NotificationType.Danger
group: Notifications.Group.Dialogs | Notifications.Group.Configuration
Connections {
target: root.backend
onHasNoKeychain: {
root.noKeychain.active = true
}
}
action: [
Action {
text: qsTr("Quit Bridge")
onTriggered: {
root.backend.quit()
}
}
]
}
}