mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Moved AudioPlayerState+position+duration+frequency to a single struct.
This commit is contained in:
@@ -2092,8 +2092,7 @@ int32 OverviewWidget::lastScrollTop() const {
|
||||
int32 OverviewWidget::countBestScroll() const {
|
||||
if (type() == OverviewMusicFiles && audioPlayer()) {
|
||||
AudioMsgId playing;
|
||||
AudioPlayerState playingState = AudioPlayerStopped;
|
||||
audioPlayer()->currentState(&playing, AudioMsgId::Type::Song, &playingState);
|
||||
audioPlayer()->currentState(&playing, AudioMsgId::Type::Song);
|
||||
if (playing) {
|
||||
int32 top = _inner.itemTop(playing.contextId());
|
||||
if (top >= 0) {
|
||||
|
Reference in New Issue
Block a user