Don't overwrite active status of attachment row for voice notes, fixes #481
This commit is contained in:
parent
ebe0143a8a
commit
856a16c640
2 changed files with 1 additions and 2 deletions
|
@ -209,7 +209,6 @@ Item {
|
||||||
attachmentOptionsFlickable.isNeeded = false;
|
attachmentOptionsFlickable.isNeeded = false;
|
||||||
attachmentPreviewRow.isVoiceNote = true;
|
attachmentPreviewRow.isVoiceNote = true;
|
||||||
attachmentPreviewRow.attachmentDescription = qsTr("Voice Note (%1)").arg(recordingDurationLabel.text);
|
attachmentPreviewRow.attachmentDescription = qsTr("Voice Note (%1)").arg(recordingDurationLabel.text);
|
||||||
attachmentPreviewRow.visible = true;
|
|
||||||
controlSendButton();
|
controlSendButton();
|
||||||
voiceNoteOverlayLoader.active = false;
|
voiceNoteOverlayLoader.active = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1696,7 +1696,7 @@ Page {
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: attachmentPreviewRow
|
id: attachmentPreviewRow
|
||||||
visible: (!!locationData || !!fileProperties) && !inlineQuery.userNameIsValid
|
visible: (!!locationData || !!fileProperties || isVoiceNote) && !inlineQuery.userNameIsValid
|
||||||
spacing: Theme.paddingMedium
|
spacing: Theme.paddingMedium
|
||||||
width: parent.width
|
width: parent.width
|
||||||
layoutDirection: Qt.RightToLeft
|
layoutDirection: Qt.RightToLeft
|
||||||
|
|
Loading…
Reference in a new issue