on xenial help sign in
Style guideline changes
04deeb9Josh Arenson
qml/Greeter/LightDMGreeterAPI.qml+20−6
@@ -24,6 +24,8 @@ import QtQuick 2.3
24
24
25Loader {
25Loader {
26 id: loader
26 id: loader
27+
28+ // TODO: Conditionally load RealLightDMImpl if shellMode dictates it
27 source: "IntegratedLightDMImpl.qml"
29 source: "IntegratedLightDMImpl.qml"
28
30
29 QtObject {
31 QtObject {
@@ -42,27 +44,39 @@ Loader {
42 property var userModel: d.valid ? item.userModel : null
44 property var userModel: d.valid ? item.userModel : null
43
45
44 function authenticate(user) {
46 function authenticate(user) {
47+ if (d.valid) {
45− if (d.valid) item.authenticate(user);
48+ item.authenticate(user);
49+ }
46 }
50 }
47
51
48 function getUser(uid) {
52 function getUser(uid) {
53+ if (d.valid) {
49− if (d.valid) return item.getUser(uid);
54+ return item.getUser(uid);
55+ }
50 }
56 }
51
57
52 function infographicReadyForDataChange() {
58 function infographicReadyForDataChange() {
59+ if (d.valid) {
53− if (d.valid) return item.infographicReadyForDataChange();
60+ return item.infographicReadyForDataChange();
61+ }
54 }
62 }
55
63
56 function respond(response) {
64 function respond(response) {
65+ if (d.valid) {
57− if (d.valid) item.respond(response);
66+ item.respond(response);
67+ }
58 }
68 }
59
69
60 function showGreeter() {
70 function showGreeter() {
71+ if (d.valid) {
61− if (d.valid) item.showGreeter();
72+ item.showGreeter();
73+ }
62 }
74 }
63
75
64 function startSessionSync() {
76 function startSessionSync() {
77+ if (d.valid) {
65− if (d.valid) item.startSessionSync();
78+ item.startSessionSync();
79+ }
66 }
80 }
67}
81}
68
82