Show Default.qml from forget room button callback

This commit is contained in:
miruka 2019-08-16 01:26:32 -04:00
parent 6a7376d498
commit 69a3f4377d
3 changed files with 1 additions and 3 deletions

View File

@ -24,6 +24,7 @@ Banner {
py.callClientCoro( py.callClientCoro(
chatPage.userId, "room_forget", [chatPage.roomId], () => { chatPage.userId, "room_forget", [chatPage.roomId], () => {
button.loading = false button.loading = false
Qt.callLater(pageStack.showPage, "Default")
}) })
} }
}) })

View File

@ -18,7 +18,6 @@ HPage {
readonly property var roomInfo: Utils.getItem( readonly property var roomInfo: Utils.getItem(
modelSources[["Room", userId]] || [], "room_id", roomId modelSources[["Room", userId]] || [], "room_id", roomId
) || "waiting" ) || "waiting"
onRoomInfoChanged: if (! roomInfo) { pageStack.showPage("Default") }
readonly property bool hasUnknownDevices: false readonly property bool hasUnknownDevices: false

View File

@ -29,8 +29,6 @@ HRowLayout {
onTextChanged: { onTextChanged: {
if (window.uiState.sidePaneFilter == text) return if (window.uiState.sidePaneFilter == text) return
print("save")
window.uiState.sidePaneFilter = text window.uiState.sidePaneFilter = text
window.uiStateChanged() window.uiStateChanged()
} }