Always use resolveResource instead of enterRoom or EnterSpaceHome

This commit is contained in:
James Graham
2024-01-24 20:26:21 +00:00
parent 35c68a6de1
commit bb566e3c7b
19 changed files with 69 additions and 170 deletions

View File

@@ -59,11 +59,11 @@ QQC2.Dialog {
}
}
Keys.onEnterPressed: {
RoomManager.enterRoom(roomList.currentItem.currentRoom);
RoomManager.resolveResource(roomList.currentItem.currentRoom.id);
root.close();
}
Keys.onReturnPressed: {
RoomManager.enterRoom(roomList.currentItem.currentRoom);
RoomManager.resolveResource(roomList.currentItem.currentRoom.id);
root.close();
}
focusSequence: ""
@@ -92,23 +92,8 @@ QQC2.Dialog {
delegate: RoomDelegate {
filterText: searchField.text
connection: root.connection
onSelected: {
RoomManager.enterRoom(currentRoom);
root.close()
}
Keys.onEnterPressed: {
RoomManager.enterRoom(currentRoom);
root.close();
}
Keys.onReturnPressed: {
RoomManager.enterRoom(currentRoom);
root.close();
}
onSelected: root.close()
}
}
}