D16219: [Lock Screen] Do not try to unlock when unvisible

David Edmundson noreply at phabricator.kde.org
Wed Oct 17 12:55:26 BST 2018


davidedmundson added a comment.


  It's ok as-is, there's a code change that would make things a bit better.

INLINE COMMENTS

> MainBlock.qml:65
> +        onAccepted: {
> +            if (lockScreenRoot.uiVisible) {
> +                startLogin();

It's generally bad practice to reference properties in the parent scope, it makes future refactors very difficult.

I would prefer an explicit property on MainBlock and then have LockScreenUi.qml bind that when it instantiates the MainBlock.

REPOSITORY
  R120 Plasma Workspace

BRANCH
  arc_enterpressed (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D16219

To: thsurrel, #plasma, #vdg, ngraham
Cc: ngraham, davidedmundson, abetts, filipf, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181017/3ce1396c/attachment.html>


More information about the Plasma-devel mailing list