From cb74fe6ede6ac2e9c19882003b2b1e7824d1c024 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 14 Jun 2024 21:26:38 +0200 Subject: Prefill status message dialog with current status --- resources/qml/RoomList.qml | 2 ++ resources/qml/dialogs/InputDialog.qml | 2 ++ 2 files changed, 4 insertions(+) (limited to 'resources') diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 350b3846..c82bc43a 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -249,6 +249,8 @@ Page { prompt: qsTr("Enter your status message:") title: qsTr("Status Message") + text: userInfoGrid.profile ? Presence.userStatus(userInfoGrid.profile.userid) : "" + onAccepted: function (text) { Nheko.setStatusMessage(text); } diff --git a/resources/qml/dialogs/InputDialog.qml b/resources/qml/dialogs/InputDialog.qml index bf3cbc9a..c963febb 100644 --- a/resources/qml/dialogs/InputDialog.qml +++ b/resources/qml/dialogs/InputDialog.qml @@ -13,6 +13,8 @@ ApplicationWindow { property alias prompt: promptLabel.text property alias echoMode: statusInput.echoMode + property alias text: statusInput.text + signal accepted(text: string) modality: Qt.NonModal -- cgit 1.4.1