@@ -16,45 +16,53 @@
18 * Expose an API that allows interaction with the
18 * Expose an API that allows interaction with the
19− * integrated LightDM or real LightDM depending on shell mode
19+ * integrated LightDM or real LightDM depending on shell mode.
20+ * This is a hack to essentially support conditional imports
21import QtQuick 2.3
23import QtQuick 2.3
24 source: "IntegratedLightDMImpl.qml"
27 source: "IntegratedLightDMImpl.qml"
25− property bool valid: item !== null
32+ property bool valid: loader.item !== null
27− property bool active: valid ? item.active : null
35+ property bool active: d.valid ? item.active : null
28− property bool authenticated: valid ? item.authenticated : null
36+ property bool authenticated: d.valid ? item.authenticated : null
29− property bool promptless: valid ? item.promptless : null
37+ property bool promptless: d.valid ? item.promptless : null
30− property real userCount: valid ? item.userCount : null
38+ property real userCount: d.valid ? item.userCount : null
32− property var theGreeter: valid ? item.theGreeter : null
40+ property var theGreeter: d.valid ? item.theGreeter : null
33− property var infographicModel: valid ? item.infographicModel : null
41+ property var infographicModel: d.valid ? item.infographicModel : null
34− property var userModel: valid ? item.userModel : null
42+ property var userModel: d.valid ? item.userModel : null
36 function authenticate(user) {
44 function authenticate(user) {
37− if (valid) item.authenticate(user);
45+ if (d.valid) item.authenticate(user);
40 function getUser(uid) {
48 function getUser(uid) {
41− if (valid) return item.getUser(uid);
49+ if (d.valid) return item.getUser(uid);
44 function infographicReadyForDataChange() {
52 function infographicReadyForDataChange() {
45− if (valid) return item.infographicReadyForDataChange();
53+ if (d.valid) return item.infographicReadyForDataChange();
48 function respond(response) {
56 function respond(response) {
49− if (valid) item.respond(response);
57+ if (d.valid) item.respond(response);
52 function showGreeter() {
60 function showGreeter() {
53− if (valid) item.showGreeter();
61+ if (d.valid) item.showGreeter();
56 function startSessionSync() {
64 function startSessionSync() {
57− if (valid) item.startSessionSync();
65+ if (d.valid) item.startSessionSync();