From 60a35bdde41e8648594dc6a501a11000081ff878 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 6 Aug 2020 13:01:22 +0200 Subject: [pkg] add float-deployed demo libpvn for tests --- gui/qml/LoginDialog.qml | 5 ++--- gui/qml/main.qml | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'gui/qml') 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")) -- cgit v1.2.3