Skip to content

Fix Position Line gradient appearing in all editors no matter which one is playing #7882

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

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

regulus79
Copy link
Contributor

Currently in master, if you zoom in on both the song editor and the piano roll, then play either of them, both playhead/position lines will have their gradient/tail appear, even though only one of them is playing.

This is because the position line only checks if either the song or a midi clip is playing, as it doesn't directly know which editor it belongs to.

I fixed this issue by adding the PlayMode for the position line as an argument in its constructor, which it can use to check whether it's corresponding editor is playing, and if so, show the gradient.

@firiox
Copy link

firiox commented May 9, 2025

I see no problem good job

Copy link
Member

@messmerd messmerd left a comment

Choose a reason for hiding this comment

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

The code changes look good, and it worked when I tested it

@bratpeki
Copy link
Member

bratpeki commented Jun 3, 2025

Works good and other devs say it's made good, please merge! 🙏

@messmerd messmerd merged commit 8acc4ed into LMMS:master Jun 4, 2025
11 checks passed
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.

4 participants