Commit 8f93a60a authored by Martin Straka's avatar Martin Straka
Browse files

Fixed add account after first application run (issue #52)

parent e80e2ee9
......@@ -169,7 +169,7 @@ Component {
anchors.fill: parent
onClicked: {
if (index == 0) {
pageView.push(accountSettingsPage, {"userName": gUserName}, StackView.Immediate)
pageView.push(accountSettingsPage, StackView.Immediate)
} else if (index == 1) {
pageView.push(accountDetailPage, StackView.Immediate)
accounts.fillAccountInfo(gUserName)
......
......@@ -30,11 +30,7 @@ Component {
id: accountSettingsDialog
Item {
id: mainLayout
property bool isNewAccount: if (gUserName === "") {
isNewAccount = true
} else {
isNewAccount = false
}
property bool isNewAccount: (gUserName == "")
property string sLoginMethod: "pwd"
property int myWidht: mainLayout.width - 2 * defaultMargin
Component.onCompleted: {
......
......@@ -159,6 +159,7 @@ Component {
anchors.fill: parent
onClicked: {
if (index == 1) {
gUserName = ""
pageView.push(accountSettingsPage, StackView.Immediate)
} else if (index == 2) {
pageView.push(settingsGeneralPage, StackView.Immediate)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment