From 03382496b9f8556967754e45ba44faaf33d8bbdd Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 16 Feb 2026 13:45:00 -0500 Subject: [PATCH] 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 --- src/chatbar/SendBar.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/chatbar/SendBar.qml b/src/chatbar/SendBar.qml index 9b3e5d19b..22f8ffcc7 100644 --- a/src/chatbar/SendBar.qml +++ b/src/chatbar/SendBar.qml @@ -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) {