reverse debug change
This commit is contained in:
parent
18ad29338c
commit
4ed07c9104
1 changed files with 7 additions and 7 deletions
|
|
@ -23,17 +23,17 @@ Window {
|
||||||
|
|
||||||
AccountProxy{
|
AccountProxy{
|
||||||
id: accountProxy
|
id: accountProxy
|
||||||
// onHaveAccountChanged: {
|
onHaveAccountChanged: {
|
||||||
// if(haveAccount)
|
if(haveAccount)
|
||||||
// mainWindowStackView.replace(mainPage, StackView.Immediate)
|
mainWindowStackView.replace(mainPage, StackView.Immediate)
|
||||||
// else
|
else
|
||||||
// mainWindowStackView.replace(loginPage, StackView.Immediate)
|
mainWindowStackView.replace(loginPage, StackView.Immediate)
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
StackView {
|
StackView {
|
||||||
id: mainWindowStackView
|
id: mainWindowStackView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
initialItem: welcomePage
|
initialItem: accountProxy.haveAccount ? mainPage : welcomePage
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
id: welcomePage
|
id: welcomePage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue