Show send message button also if attachments are there, fixes #143

This commit is contained in:
Sebastian Wolf 2020-12-30 16:18:50 +01:00
parent 7dfe7ddc3e
commit e15c171640
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -1479,7 +1479,7 @@ Page {
TextArea {
id: newMessageTextField
width: parent.width - attachmentIconButton.width - (appSettings.sendByEnter ? 0: newMessageSendButton.width)
width: parent.width - attachmentIconButton.width - (newMessageSendButton.visible ? newMessageSendButton.width : 0)
height: Math.min(chatContainer.height / 3, implicitHeight)
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.fontSizeSmall
@ -1525,7 +1525,7 @@ Page {
icon.source: "image://theme/icon-m-chat"
anchors.bottom: parent.bottom
anchors.bottomMargin: Theme.paddingSmall
visible: !appSettings.sendByEnter
visible: !appSettings.sendByEnter || attachmentPreviewRow.visible
enabled: false
onClicked: {
sendMessage();