Refactor error handling and move unrelated functions out of ActionsHandler

This commit is contained in:
Tobias Fella
2021-04-15 16:41:48 +02:00
parent 077844ba61
commit 00681a8abe
5 changed files with 62 additions and 55 deletions

View File

@@ -60,9 +60,6 @@ Kirigami.ApplicationWindow {
property var actionsHandler: ActionsHandler {
room: roomManager.currentRoom
connection: Controller.activeConnection
onRoomJoined: {
roomManager.enterRoom(Controller.activeConnection.room(roomName))
}
}
property var currentRoom: null
@@ -294,6 +291,10 @@ Kirigami.ApplicationWindow {
consentSheet.url = url
consentSheet.open()
}
function onRoomJoined(roomName) {
roomManager.enterRoom(Controller.activeConnection.room(roomName))
}
}
Connections {