Refactor room leaving
The old code has a small bug where the room would not be left in certain conditions.
This commit is contained in:
committed by
Carl Schwan
parent
21bd5fa94e
commit
ecc639fb0a
@@ -28,6 +28,17 @@ Kirigami.ScrollablePage {
|
||||
|
||||
title: currentRoom.displayName
|
||||
|
||||
Connections {
|
||||
target: RoomManager
|
||||
function onCurrentRoomChanged() {
|
||||
if(!RoomManager.currentRoom) {
|
||||
if(pageStack.lastItem == page) {
|
||||
pageStack.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signal switchRoomUp()
|
||||
signal switchRoomDown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user