From 8cfd515db2fbbb7f2e4f2d97593d9c1fadfa69e3 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 20 Feb 2024 20:09:49 +0000 Subject: [PATCH] Add feature flag for reply in thread Currently the ability to reply in threads was added but not the ability to actually view threads so this doesn't currently make much sense to just have enabled int he main build. Note: I want to cherrypick this so it's just the flag. I'll add a feature flag page to dev tools for master soon. (cherry picked from commit 864f9b8f74344e5750aa4b7b1596f88c150b40bd) --- src/neochatconfig.kcfg | 6 ++++++ src/qml/HoverActions.qml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/neochatconfig.kcfg b/src/neochatconfig.kcfg index ee592333f..90fbea857 100644 --- a/src/neochatconfig.kcfg +++ b/src/neochatconfig.kcfg @@ -156,5 +156,11 @@ + + + + false + + diff --git a/src/qml/HoverActions.qml b/src/qml/HoverActions.qml index e6c3d7269..d66b1a44c 100644 --- a/src/qml/HoverActions.qml +++ b/src/qml/HoverActions.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts import org.kde.kirigami as Kirigami import org.kde.neochat +import org.kde.neochat.config /** * @brief A component that provides a set of actions when a message is hovered in the timeline. @@ -108,7 +109,7 @@ QQC2.Control { } }, Kirigami.Action { - visible: !root.currentRoom.readOnly + visible: Config.threads && !root.currentRoom.readOnly text: i18n("Reply in Thread") icon.name: "dialog-messages" onTriggered: {