summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-12 12:48:12 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-12 12:48:12 +0530
commit35aa0126ac80d99aaf7f61d6eeba6c7d9eca96bc (patch)
treebbcdd5948af903617cb9f32bca97d720024411f1 /resources
parentfix avatar update on timeline sync (diff)
downloadnheko-35aa0126ac80d99aaf7f61d6eeba6c7d9eca96bc.tar.xz
added changing of name through edit modal, removed old roomsettings
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/RoomSettings.qml9
-rw-r--r--resources/qml/TopBar.qml4
-rw-r--r--resources/qml/UserProfile.qml1
3 files changed, 7 insertions, 7 deletions
diff --git a/resources/qml/RoomSettings.qml b/resources/qml/RoomSettings.qml

index 5d2baba1..eabe68f5 100644 --- a/resources/qml/RoomSettings.qml +++ b/resources/qml/RoomSettings.qml
@@ -12,13 +12,11 @@ ApplicationWindow { x: MainWindow.x + (MainWindow.width / 2) - (width / 2) y: MainWindow.y + (MainWindow.height / 2) - (height / 2) - height: 600 - width: 420 - minimumHeight: 420 + minimumWidth: 340 + minimumHeight: 600 palette: colors color: colors.window modality: Qt.WindowModal - flags: Qt.WindowStaysOnTopHint Shortcut { sequence: StandardKey.Cancel @@ -100,6 +98,8 @@ ApplicationWindow { ImageButton { Layout.alignment: Qt.AlignHCenter image: ":/icons/icons/ui/edit.png" + visible: roomSettings.canChangeNameAndTopic + onClicked: roomSettings.openEditModal() } MatrixText { @@ -248,6 +248,7 @@ ApplicationWindow { Button { Layout.alignment: Qt.AlignRight text: "Ok" + onClicked: close() } } } \ No newline at end of file diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml
index 273ed8ab..c64eddd4 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml
@@ -68,7 +68,7 @@ Rectangle { MouseArea { anchors.fill: parent - onClicked: TimelineManager.openRoomSettings() + onClicked: TimelineManager.timeline.openRoomSettings() } } @@ -114,7 +114,7 @@ Rectangle { MenuItem { text: qsTr("Settings") - onTriggered: TimelineManager.openRoomSettings() + onTriggered: TimelineManager.timeline.openRoomSettings() } } diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml
index 37ae6de8..e8d41073 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -113,7 +113,6 @@ ApplicationWindow { } } } - } MatrixText {