Add button to encrypt room

This commit is contained in:
Tobias Fella
2022-10-27 20:56:29 +02:00
parent 82ec92b209
commit 4e6aca9a4e
4 changed files with 35 additions and 0 deletions

View File

@@ -126,6 +126,22 @@ Kirigami.OverlayDrawer {
text: favouriteButton.text
}
}
ToolButton {
id: encryptButton
Layout.alignment: Qt.AlignRight
icon.name: 'channel-insecure-symbolic'
enabled: roomDrawer.room.canEncryptRoom
visible: !roomDrawer.room.usesEncryption && Controller.encryptionSupported
text: i18n("Enable encryption")
display: AbstractButton.IconOnly
onClicked: roomDrawer.room.activateEncryption()
ToolTip {
text: encryptButton.text
}
}
ToolButton {
id: settingsButton