From 775817533473fb00a33514dd3595bb16102f5ef9 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 8 Feb 2026 15:06:02 +0000 Subject: [PATCH] Don't allow links when rich formatting is diabled --- src/chatbar/RichEditBar.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/chatbar/RichEditBar.qml b/src/chatbar/RichEditBar.qml index 3f7b425b2..e08306783 100644 --- a/src/chatbar/RichEditBar.qml +++ b/src/chatbar/RichEditBar.qml @@ -232,9 +232,6 @@ RowLayout { } QQC2.ToolButton { id: emojiButton - - property bool isBusy: false - visible: !Kirigami.Settings.isMobile icon.name: "smiley" text: i18n("Emojis & Stickers") @@ -250,6 +247,7 @@ RowLayout { } QQC2.ToolButton { id: linkButton + enabled: root.chatButtonHelper.richFormatEnabled icon.name: "insert-link-symbolic" text: root.chatButtonHelper.currentLinkUrl.length > 0 ? i18nc("@action:button", "Edit link") : i18nc("@action:button", "Insert link") display: QQC2.AbstractButton.IconOnly