Refactor PageLoader show methods
Also lets the chat page recycling work with showPrevious() (ctrl+tab)
This commit is contained in:
@@ -20,7 +20,7 @@ HFlickableColumnPopup {
|
||||
window.uiState.pageProperties.roomId === roomId)
|
||||
{
|
||||
window.mainUI.pageLoader.showPrevious() ||
|
||||
window.mainUI.pageLoader.showPage("Default")
|
||||
window.mainUI.pageLoader.showPage("Pages/Default.qml")
|
||||
|
||||
Qt.callLater(popup.destroy)
|
||||
}
|
||||
|
@@ -38,7 +38,8 @@ HFlickableColumnPopup {
|
||||
if (ModelStore.get("accounts").count < 2 ||
|
||||
window.uiState.pageProperties.userId === userId)
|
||||
{
|
||||
window.mainUI.pageLoader.showPage("AddAccount/AddAccount")
|
||||
const page = "Pages/AddAccount/AddAccount.qml"
|
||||
window.mainUI.pageLoader.showPage(page)
|
||||
}
|
||||
|
||||
py.callCoro("logout_client", [userId])
|
||||
|
Reference in New Issue
Block a user