summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-25 23:22:39 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-25 23:22:39 +0200
commitbbfbba30b0e27dbd606fa09c0e016e94aacd4858 (patch)
treeb01103e1228a548a12d9f79ae6423f10a73738b2 /resources/qml
parentFix linting (diff)
downloadnheko-bbfbba30b0e27dbd606fa09c0e016e94aacd4858.tar.xz
Allow setting presence state again
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/RoomList.qml34
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