Merge pull request #252 from santhoshmanikandan/hiding-send-new-message-button

Implements Remove send new message button when "Send message by enter" is chosen
This commit is contained in:
Sebastian Wolf 2020-12-30 12:44:13 +01:00 committed by GitHub
commit d10b6dc227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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