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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user