Rename PageLoader.showPage() → PageLoader.show()
This commit is contained in:
@@ -110,7 +110,7 @@ HMenu {
|
||||
icon.name: "account-settings"
|
||||
text: qsTr("Account settings")
|
||||
onTriggered: {
|
||||
pageLoader.showPage(
|
||||
pageLoader.show(
|
||||
"Pages/AccountSettings/AccountSettings.qml",
|
||||
{ "userId": userId },
|
||||
)
|
||||
@@ -122,7 +122,7 @@ HMenu {
|
||||
icon.name: "menu-add-chat"
|
||||
text: qsTr("Add new chat")
|
||||
onTriggered: {
|
||||
pageLoader.showPage("Pages/AddChat/AddChat.qml", {userId: userId})
|
||||
pageLoader.show("Pages/AddChat/AddChat.qml", {userId: userId})
|
||||
wentToAccountPage()
|
||||
}
|
||||
}
|
||||
|
@@ -146,7 +146,7 @@ HTile {
|
||||
backgroundColor: "transparent"
|
||||
toolTip.text: qsTr("Add new chat")
|
||||
onClicked: {
|
||||
pageLoader.showPage(
|
||||
pageLoader.show(
|
||||
"Pages/AddChat/AddChat.qml", {userId: model.id},
|
||||
)
|
||||
account.wentToAccountPage()
|
||||
|
@@ -24,7 +24,7 @@ Rectangle {
|
||||
toolTip.text: qsTr("Add another account")
|
||||
backgroundColor: theme.mainPane.bottomBar.settingsButtonBackground
|
||||
onClicked: {
|
||||
pageLoader.showPage("Pages/AddAccount/AddAccount.qml")
|
||||
pageLoader.show("Pages/AddAccount/AddAccount.qml")
|
||||
roomList.startCorrectItemSearch()
|
||||
}
|
||||
|
||||
|
@@ -61,7 +61,7 @@ HListView {
|
||||
const item = model.get(index)
|
||||
|
||||
item.type === "Account" ?
|
||||
pageLoader.showPage(
|
||||
pageLoader.show(
|
||||
"Pages/AccountSettings/AccountSettings.qml", { "userId": item.id },
|
||||
) :
|
||||
pageLoader.showRoom(item.for_account, item.id)
|
||||
|
Reference in New Issue
Block a user