Fix room drawer not opening for automatically opened room
This commit is contained in:
@@ -29,7 +29,7 @@ Kirigami.ApplicationWindow {
|
|||||||
property var currentRoom: null
|
property var currentRoom: null
|
||||||
property alias pageStack: root.pageStack
|
property alias pageStack: root.pageStack
|
||||||
|
|
||||||
readonly property bool hasOpenRoom: currentRoom != null
|
readonly property bool hasOpenRoom: currentRoom !== null
|
||||||
|
|
||||||
signal leaveRoom(string room);
|
signal leaveRoom(string room);
|
||||||
signal openRoom(string room);
|
signal openRoom(string room);
|
||||||
@@ -37,6 +37,7 @@ Kirigami.ApplicationWindow {
|
|||||||
function loadInitialRoom() {
|
function loadInitialRoom() {
|
||||||
if (Config.openRoom) {
|
if (Config.openRoom) {
|
||||||
const room = Controller.activeConnection.room(Config.openRoom);
|
const room = Controller.activeConnection.room(Config.openRoom);
|
||||||
|
currentRoom = room;
|
||||||
pageStack.push(roomPage, { 'currentRoom': room, });
|
pageStack.push(roomPage, { 'currentRoom': room, });
|
||||||
} else {
|
} else {
|
||||||
// TODO create welcome page
|
// TODO create welcome page
|
||||||
|
|||||||
Reference in New Issue
Block a user