mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
parent
3fb373a8ef
commit
bb45637d0b
5 changed files with 110 additions and 38 deletions
|
@ -182,27 +182,12 @@ ApplicationWindow {
|
|||
onAuthenticatedChanged: {
|
||||
if (authenticated && !isInSetup()) {
|
||||
console.log("Authenticated)")
|
||||
loginAnimation.start()
|
||||
//pageStack.replace(Qt.resolvedUrl("pages/MainPage.qml"))
|
||||
//loginAnimation.start()
|
||||
pageStack.replace(Qt.resolvedUrl("pages/MainPage.qml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Delaying the creation of the MainPage prevents the application from freezing
|
||||
// if connecting to the server over HTTPS
|
||||
// TODO: figure out why the application actually freezes and remove this workaround
|
||||
SequentialAnimation {
|
||||
id: loginAnimation
|
||||
|
||||
PauseAnimation {
|
||||
duration: 250
|
||||
}
|
||||
|
||||
ScriptAction {
|
||||
script: pageStack.replace(Qt.resolvedUrl("pages/MainPage.qml"), {}, PageStackAction.Immediate)
|
||||
}
|
||||
}
|
||||
|
||||
function isInSetup() {
|
||||
return pageStack.find(function (page) { return typeof page._isSetupPage !== "undefined" }) !== null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue