From 03756aedd05518008aa5cf4006a39a0a89a6d14c Mon Sep 17 00:00:00 2001
From: pmagnier-slimani <page.magnier-slimani@savoirfairelinux.com>
Date: Thu, 13 Feb 2025 10:47:22 -0500
Subject: [PATCH] MessageBar: show less is only visible when the context menu
 is open

Changed the property of ToolTipMoreButton on the messageBar to ensure that the show less
text display properly only when the context menu is open and not while holding click.

Gitlab: #1904
Change-Id: I4f74802d42e58c38abb3b64dc4277f5c1b79a5f6
---
 src/app/mainview/components/MessageFormatBar.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/mainview/components/MessageFormatBar.qml b/src/app/mainview/components/MessageFormatBar.qml
index bef1ca61..9133a6d6 100644
--- a/src/app/mainview/components/MessageFormatBar.qml
+++ b/src/app/mainview/components/MessageFormatBar.qml
@@ -496,9 +496,10 @@ Rectangle {
                     parent: showMoreButton
                     visible: showMoreButton.hovered && (text.length > 0)
                     delay: Qt.styleHints.mousePressAndHoldInterval
-                    text: showMoreButton.down ? JamiStrings.showLess : JamiStrings.showMore
+                    text: showMoreButton.popup.visible ? JamiStrings.showLess : JamiStrings.showMore
                 }
 
+
                 indicator: ResponsiveImage {
 
                     width: 20
-- 
GitLab