Refactor error handling and move unrelated functions out of ActionsHandler
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user