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

Init WOverview with a track, if it was already loaded before #11453

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

daschuer
Copy link
Member

@daschuer daschuer commented Apr 7, 2023

Extend the WOverview::Init with a track. This fixes an issue that the waveform overview is empty after skin change, because of missing the real track signals during loading

@github-actions github-actions bot added the ui label Apr 7, 2023

// Connect the player's load and unload signals to the overview widget.
connect(pPlayer, &BaseTrackPlayer::newTrackLoaded, overviewWidget, &WOverview::slotTrackLoaded);
connect(pPlayer, &BaseTrackPlayer::loadingTrack, overviewWidget, &WOverview::slotLoadingTrack);

// just in case track already loaded
overviewWidget->slotLoadingTrack(pPlayer->getLoadedTrack(), TrackPointer());
overviewWidget->slotTrackLoaded(pPlayer->getLoadedTrack());
Copy link
Member

Choose a reason for hiding this comment

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

So the issue was that slotWaveformSummaryUpdated() was missing here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes., It was working in 2.3.3 because we use the stored track length and not the real length which is not read before slotTrackLoaded()

@ronso0
Copy link
Member

ronso0 commented Apr 8, 2023

Works & LGTM, thank you!

@ronso0 ronso0 merged commit e399c7c into mixxxdj:2.3 Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants