Small stability improvements.
This commit is contained in:
parent
f9e41f7e9f
commit
be5332770a
|
@ -13,7 +13,7 @@ Page {
|
||||||
RoomListModel {
|
RoomListModel {
|
||||||
id: roomListModel
|
id: roomListModel
|
||||||
|
|
||||||
connection: page.connection
|
connection: matriqueController.isLogin ? page.connection : undefined
|
||||||
|
|
||||||
onNewMessage: trayIcon.showMessage("New message", "New message for room " + room.displayName)
|
onNewMessage: trayIcon.showMessage("New message", "New message for room " + room.displayName)
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,22 +213,18 @@ Item {
|
||||||
text: "Priorize"
|
text: "Priorize"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
roomListMenu.room.removeTag("m.lowpriority")
|
roomListMenu.room.removeTag("m.lowpriority")
|
||||||
roomListMenu.room.addTag("m.favourite")
|
roomListMenu.room.addTag("m.favourite", "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: "Depriorize"
|
text: "Depriorize"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
console.log("Index:" + roomListMenu.roomIndex)
|
|
||||||
console.log("Proxy:" + roomListMenu.roomProxyIndex)
|
|
||||||
console.log("Room:" + roomListMenu.room.displayName)
|
|
||||||
roomListMenu.room.removeTag("m.favourite")
|
roomListMenu.room.removeTag("m.favourite")
|
||||||
roomListMenu.room.addTag("m.lowpriority")
|
roomListMenu.room.addTag("m.lowpriority", "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: "Direct Chat"
|
text: "Direct Chat"
|
||||||
onTriggered: saveDialog.open()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,11 @@ import QtQuick.Layouts 1.3
|
||||||
import "qrc:/qml/component"
|
import "qrc:/qml/component"
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
|
padding: 64
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
height: 60
|
Layout.preferredHeight: 60
|
||||||
|
|
||||||
ImageStatus {
|
ImageStatus {
|
||||||
Layout.preferredWidth: height
|
Layout.preferredWidth: height
|
||||||
|
@ -28,8 +31,16 @@ Page {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
text: "No text."
|
text: connection ? connection.localUser.id : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
text: "Logout"
|
||||||
|
highlighted: true
|
||||||
|
|
||||||
|
onClicked: matriqueController.logout()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import "component"
|
||||||
import "form"
|
import "form"
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
readonly property var connection: matriqueController.isLogin ? matriqueController.connection : undefined
|
readonly property var connection: matriqueController.connection
|
||||||
|
|
||||||
id: window
|
id: window
|
||||||
visible: true
|
visible: true
|
||||||
|
|
Loading…
Reference in New Issue