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(
chatPage.userId, "room_forget", [chatPage.roomId], () => {
button.loading = false
Qt.callLater(pageStack.showPage, "Default")
})
}
})

View File

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

View File

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