add loaders on main pages so they are instanciated only when switching to corresponding views
This commit is contained in:
parent
ff3aa59217
commit
a562b0f1c8
1 changed files with 71 additions and 54 deletions
|
|
@ -582,7 +582,9 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
CallPage {
|
||||
Loader {
|
||||
active: mainStackLayout.currentIndex === 0
|
||||
sourceComponent: CallPage {
|
||||
id: callPage
|
||||
Connections {
|
||||
target: mainItem
|
||||
|
|
@ -612,7 +614,10 @@ Item {
|
|||
openContextualMenuComponent(page);
|
||||
}
|
||||
}
|
||||
ContactPage {
|
||||
}
|
||||
Loader {
|
||||
active: mainStackLayout.currentIndex === 1
|
||||
sourceComponent: ContactPage {
|
||||
id: contactPage
|
||||
Connections {
|
||||
target: mainItem
|
||||
|
|
@ -624,7 +629,10 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
ChatPage {
|
||||
}
|
||||
Loader {
|
||||
active: mainStackLayout.currentIndex === 2
|
||||
sourceComponent: ChatPage {
|
||||
id: chatPage
|
||||
Connections {
|
||||
target: mainItem
|
||||
|
|
@ -639,6 +647,12 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: mainStackLayout.currentIndex === 3
|
||||
sourceComponent: Component {
|
||||
id: meetingComp
|
||||
MeetingPage {
|
||||
id: meetingPage
|
||||
Connections {
|
||||
|
|
@ -650,6 +664,9 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Component {
|
||||
id: accountSettingsPageComponent
|
||||
AccountSettingsPage {
|
||||
|
|
|
|||
Loading…
Reference in a new issue