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

Update LedBargraphSkin.java #105

Merged
merged 1 commit into from
Jan 7, 2015
Merged

Update LedBargraphSkin.java #105

merged 1 commit into from
Jan 7, 2015

Conversation

deamn
Copy link

@deamn deamn commented Jan 7, 2015

when isPeakValueVisible()==false, the first led ([0]) is never OFF after an ON.

when isPeakValueVisible()==false, the first led ([0]) is never OFF after an ON.
@deamn deamn mentioned this pull request Jan 7, 2015
ledList.get(i).setOn(false);
} else {
ledList.get(i).setOn(true);
}
Copy link
Member

Choose a reason for hiding this comment

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

Seems like this would have more efficient
ledList.get(i).setOn(newValue.doubleValue() != 0.0);

But that is just syntax. :-)
Gerrit no longer supports this code, so I'll merge it.

tbee added a commit that referenced this pull request Jan 7, 2015
Update LedBargraphSkin.java
@tbee tbee merged commit 122391f into JFXtras:2.2 Jan 7, 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