Send message button will now be hidden by default if Send message by Enter
option is used Ref: https://github.com/Wunderfitz/harbour-fernschreiber/issues/143
This commit is contained in:
parent
775a31cecb
commit
ba42aa061b
1 changed files with 2 additions and 1 deletions
|
@ -1411,7 +1411,7 @@ Page {
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
id: newMessageTextField
|
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)
|
height: Math.min(chatContainer.height / 3, implicitHeight)
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
@ -1457,6 +1457,7 @@ Page {
|
||||||
icon.source: "image://theme/icon-m-chat"
|
icon.source: "image://theme/icon-m-chat"
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: Theme.paddingSmall
|
anchors.bottomMargin: Theme.paddingSmall
|
||||||
|
visible: !appSettings.sendByEnter
|
||||||
enabled: false
|
enabled: false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
sendMessage();
|
sendMessage();
|
||||||
|
|
Loading…
Reference in a new issue