diff options
Diffstat (limited to 'gui/qml')
-rw-r--r-- | gui/qml/LoginDialog.qml | 5 | ||||
-rw-r--r-- | gui/qml/main.qml | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gui/qml/LoginDialog.qml b/gui/qml/LoginDialog.qml index 0c0f18e..1724769 100644 --- a/gui/qml/LoginDialog.qml +++ b/gui/qml/LoginDialog.qml @@ -22,7 +22,6 @@ Dialog { } visible: false - //visible: ctx.showLogin == true - //onAccepted: backend.login(username.text, password.text) - onRejected: backend.quit() // TODO: it doesn't close + onAccepted: backend.login(username.text, password.text) + onRejected: backend.quit() } diff --git a/gui/qml/main.qml b/gui/qml/main.qml index 09bbab5..0242493 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -19,6 +19,10 @@ ApplicationWindow { console.debug(jsonModel.getJson()) donate.visible = true } + if (ctx.loginDialog == 'true') { + console.debug(jsonModel.getJson()) + login.visible = true + } if (ctx.errors ) { if ( ctx.errors == "nohelpers" ) { showInitFailure(qsTr("Could not find helpers. Check your installation")) |