summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 14:31:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 14:31:38 +0200
commitf2bc1845508cc2d90540404b6b9e11192cc56104 (patch)
tree5d50863c2d83cac33b9356e2c366243856846ffc /resources/qml
parentFix leaving rooms (diff)
downloadnheko-f2bc1845508cc2d90540404b6b9e11192cc56104.tar.xz
Fix device list not showing up and UserProfile blocking the window
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/RoomList.qml10
-rw-r--r--resources/qml/RoomSettings.qml4
-rw-r--r--resources/qml/UserProfile.qml2
-rw-r--r--resources/qml/device-verification/DeviceVerification.qml2
4 files changed, 14 insertions, 4 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml

index 979e727d..cde744c5 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml
@@ -212,6 +212,16 @@ Page { Layout.preferredHeight: userInfoGrid.implicitHeight + 2 * Nheko.paddingMedium Layout.minimumHeight: 40 + TapHandler { + onSingleTapped: { + Nheko.updateUserProfile(); + var userProfile = userProfileComponent.createObject(timelineRoot, { + "profile": Nheko.currentUser + }); + userProfile.show(); + } + } + RowLayout { id: userInfoGrid diff --git a/resources/qml/RoomSettings.qml b/resources/qml/RoomSettings.qml
index 14de0edf..1f7fe5de 100644 --- a/resources/qml/RoomSettings.qml +++ b/resources/qml/RoomSettings.qml
@@ -20,7 +20,7 @@ ApplicationWindow { minimumHeight: 650 palette: Nheko.colors color: Nheko.colors.window - modality: Qt.WindowModal + modality: Qt.NonModal flags: Qt.Dialog title: qsTr("Room Settings") @@ -205,7 +205,7 @@ ApplicationWindow { title: qsTr("End-to-End Encryption") text: qsTr("Encryption is currently experimental and things might break unexpectedly. <br> Please take note that it can't be disabled afterwards.") - modality: Qt.WindowModal + modality: Qt.NonModal onAccepted: { if (roomSettings.isEncryptionEnabled) return ; diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml
index 4e5e64dc..21f34f15 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -22,7 +22,7 @@ ApplicationWindow { palette: Nheko.colors color: Nheko.colors.window title: profile.isGlobalUserProfile ? qsTr("Global User Profile") : qsTr("Room User Profile") - modality: Qt.WindowModal + modality: Qt.NonModal flags: Qt.Dialog Shortcut { diff --git a/resources/qml/device-verification/DeviceVerification.qml b/resources/qml/device-verification/DeviceVerification.qml
index 6d0be204..e2c66c5a 100644 --- a/resources/qml/device-verification/DeviceVerification.qml +++ b/resources/qml/device-verification/DeviceVerification.qml
@@ -15,7 +15,7 @@ ApplicationWindow { onClosing: TimelineManager.removeVerificationFlow(flow) title: stack.currentItem.title flags: Qt.Dialog - modality: Qt.WindowModal + modality: Qt.NonModal palette: Nheko.colors height: stack.implicitHeight width: stack.implicitWidth