Show Default.qml from forget room button callback
This commit is contained in:
parent
6a7376d498
commit
69a3f4377d
|
@ -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")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user