Disable send message when there's nothing to actually send

Now there's a way to check if the message content model has any useful
data inside of it.

BUG: 516118
FIXED-IN: 26.04
This commit is contained in:
Joshua Goins
2026-02-16 14:15:30 -05:00
parent 2d2291fd78
commit 428a196f8d
3 changed files with 35 additions and 0 deletions

View File

@@ -208,6 +208,7 @@ RowLayout {
icon.name: "document-send"
text: i18nc("@action:button", "Send message")
display: QQC2.AbstractButton.IconOnly
enabled: root.contentModel.hasAnyContent
onClicked: root.contentModel.postMessage();
QQC2.ToolTip.visible: hovered