diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-25 23:22:39 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-25 23:22:39 +0200 |
commit | bbfbba30b0e27dbd606fa09c0e016e94aacd4858 (patch) | |
tree | b01103e1228a548a12d9f79ae6423f10a73738b2 /resources | |
parent | Fix linting (diff) | |
download | nheko-bbfbba30b0e27dbd606fa09c0e016e94aacd4858.tar.xz |
Allow setting presence state again
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/RoomList.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index eab6520e..0f8dc24a 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -267,6 +267,40 @@ Page { onTriggered: statusDialog.show() } + Platform.MenuSeparator { + } + + Platform.MenuItemGroup { + id: onlineStateGroup + } + Platform.MenuItem { + text: qsTr("Automatic online status") + group: onlineStateGroup + checkable: true + checked: Settings.presence == Settings.AutomaticPresence + onTriggered: if (checked) Settings.presence = Settings.AutomaticPresence + } + Platform.MenuItem { + text: qsTr("Online") + group: onlineStateGroup + checkable: true + checked: Settings.presence == Settings.Online + onTriggered: if (checked) Settings.presence = Settings.Online + } + Platform.MenuItem { + text: qsTr("Unavailable") + group: onlineStateGroup + checkable: true + checked: Settings.presence == Settings.Unavailable + onTriggered: if (checked) Settings.presence = Settings.Unavailable + } + Platform.MenuItem { + text: qsTr("Offline") + group: onlineStateGroup + checkable: true + checked: Settings.presence == Settings.Offline + onTriggered: if (checked) Settings.presence = Settings.Offline + } } TapHandler { acceptedButtons: Qt.LeftButton |