Merge lp://staging/~mfrey/unity8/lock-fix into lp://staging/unity8

Proposed by Michael Frey
Status: Merged
Approved by: Michael Terry
Approved revision: 1372
Merged at revision: 1384
Proposed branch: lp://staging/~mfrey/unity8/lock-fix
Merge into: lp://staging/unity8
Diff against target: 13 lines (+2/-1)
1 file modified
qml/Shell.qml (+2/-1)
To merge this branch: bzr merge lp://staging/~mfrey/unity8/lock-fix
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Abstain
PS Jenkins bot (community) continuous-integration Needs Fixing
Michael Terry Approve
Ricardo Salveti Pending
Review via email: mp+238951@code.staging.launchpad.net

This proposal supersedes a proposal from 2014-10-20.

Commit message

Added a check for Proximity to determine if we show the lock screen.

Description of the change

Added a check for Proximity to determine if we show the lock screen.
Fixes #1378012 and #1378043

To post a comment you must log in.
Revision history for this message
Ricardo Salveti (rsalveti) wrote : Posted in a previous version of this proposal

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal

 4/18 Test #4: whitespace .......................***Failed 1.07 sec
/tmp/buildd/unity8-8.00+14.10.20141013.2bzr1369pkg0utopic1693/qml/Shell.qml: bad whitespace in line 597

review: Needs Fixing
Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Is this a race between callManager.hasCalls and the status change signal?

Revision history for this message
Michael Frey (mfrey) wrote : Posted in a previous version of this proposal

> Is this a race between callManager.hasCalls and the status change signal?

Yes.

Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Also, in terms of style:
- Is there a reason you use a grouping parens?
- Use a triple-equal symbol like !== instead of !=
- And the if end-line continuation should look like:

if (Powerd.status === Powerd.Off && reason !== Powerd.Proximity &&
        !callManager.hasCalls && !edgeDemo.running) {
    foo...
}

Or maybe even for better clarity:

if (Powerd.status === Powerd.Off &&
        reason !== Powerd.Proximity &&
        !callManager.hasCalls &&
        !edgeDemo.running) {
    foo...
}

Revision history for this message
Michael Frey (mfrey) wrote : Posted in a previous version of this proposal

> Also, in terms of style:
> - Is there a reason you use a grouping parens?
> - Use a triple-equal symbol like !== instead of !=
> - And the if end-line continuation should look like:
>
> if (Powerd.status === Powerd.Off && reason !== Powerd.Proximity &&
> !callManager.hasCalls && !edgeDemo.running) {
> foo...
> }
>
> Or maybe even for better clarity:
>
> if (Powerd.status === Powerd.Off &&
> reason !== Powerd.Proximity &&
> !callManager.hasCalls &&
> !edgeDemo.running) {
> foo...
> }

Good catch. Fixed the style and pushed.

Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Love it!

review: Approve
Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

(assuming that jenkins likes it too this time)

Revision history for this message
Michael Terry (mterry) wrote :

Still approved, but waiting for top-approval on jenkins.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) :
review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches