Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context properties now only subscribed when screen is on. #38

Merged
merged 1 commit into from Jan 8, 2015

Conversation

locusf
Copy link
Member

@locusf locusf commented Jan 8, 2015

No description provided.

@@ -0,0 +1,6 @@
import QtQuick 2.0

Rectangle {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's that ? A Default QtC template QML file ?

@@ -49,6 +49,24 @@ Item {
opacity: 0.5
z: 200
}
Connections {
target: lipstickSettings;
onLockscreenVisibleChanged: {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nipticking: Maybe split into functions (subscribe, unsubscribe) and call them here ?
So if more contexts properties are added, people are aware that they need to be added in the function, instead of searching for this specific line.

locusf added a commit that referenced this pull request Jan 8, 2015
Context properties now only subscribed when screen is on.
@locusf locusf merged commit f0140c1 into nemomobile-ux:master Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants