Fix tooltip and checked state of message overflow button

This was incorrectly labeled as "Format Text" during the rich text
refactor, but this is for attaching stuff to messages.

I also fixed the checked state not resetting when the menu was closed.

BUG: 516117
BUG: 516119
FIXED-IN: 26.04
This commit is contained in:
Joshua Goins
2026-02-16 13:45:00 -05:00
parent 52302f0f5c
commit 03382496b9

View File

@@ -98,10 +98,14 @@ RowLayout {
property QQC2.Menu overflowMenu
visible: root.maxAvailableWidth < root.overflowWidth && (root.contentModel?.type ?? true) === LibNeoChat.ChatBarType.Room
icon.name: "overflow-menu"
text: i18nc("@action:button", "Format Text")
icon.name: "list-add-symbolic"
text: i18nc("@action:button", "Add to message")
display: QQC2.AbstractButton.IconOnly
checkable: true
checked: overflowMenu !== null
Accessible.role: Accessible.ButtonMenu
onClicked: {
if (!checked) {
if (overflowMenu) {