on xenial help sign in
Correctly bind active property
ed63870Michael Terry
qml/Shell.qml+6−2
@@ -323,8 +323,6 @@ FocusScope {
323 Connections {
323 Connections {
324 target: LightDM.Greeter
324 target: LightDM.Greeter
325
325
326− isActive: greeterWrapper.showProgress !== 0
327−
328 onShowPrompt: {
326 onShowPrompt: {
329 if (LightDM.Users.count == 1) {
327 if (LightDM.Users.count == 1) {
330 // TODO: There's no better way for now to determine if its a PIN or a passphrase.
328 // TODO: There's no better way for now to determine if its a PIN or a passphrase.
@@ -350,6 +348,12 @@ FocusScope {
350 }
348 }
351 }
349 }
352
350
351+ Binding {
352+ target: LightDM.Greeter
353+ property: "active"
354+ value: greeter.shown || lockscreen.shown
355+ }
356+
353 Rectangle {
357 Rectangle {
354 anchors.fill: parent
358 anchors.fill: parent
355 color: "black"
359 color: "black"