Prefill status message dialog with current status

This commit is contained in:
Nicolas Werner 2024-06-14 21:26:38 +02:00
parent 1d252ae66f
commit cb74fe6ede
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 0 deletions

View file

@ -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);
}

View file

@ -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