mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 01:30:46 +03:00
Prefill status message dialog with current status
This commit is contained in:
parent
1d252ae66f
commit
cb74fe6ede
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue