Somewhat better login logic.
This commit is contained in:
@@ -152,6 +152,8 @@ Page {
|
||||
}
|
||||
|
||||
controller.loginWithCredentials(serverField.text, usernameField.text, passwordField.text)
|
||||
|
||||
controller.connectionAdded.connect(function() { stackView.pop() })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ Page {
|
||||
flat: true
|
||||
highlighted: true
|
||||
|
||||
onClicked: Util.pushToStack(stackView, loginPage)
|
||||
onClicked: stackView.push(loginPage)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,4 +294,10 @@ ApplicationWindow {
|
||||
property: "connection"
|
||||
value: currentConnection
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
matriqueController.initiated.connect(function() {
|
||||
if (matriqueController.accountCount == 0) stackView.push(loginPage)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user