mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fixed bad time displaying when seeking in the new media player.
This commit is contained in:
parent
5d37517eac
commit
325e28f3a8
2 changed files with 1 additions and 1 deletions
|
@ -489,6 +489,7 @@ void AudioPlayer::play(const AudioMsgId &audio, int64 position) {
|
|||
onError(audio);
|
||||
}
|
||||
} else {
|
||||
current->playbackState.position = position;
|
||||
current->playbackState.state = fadedStart ? AudioPlayerStarting : AudioPlayerPlaying;
|
||||
current->loading = true;
|
||||
emit loaderOnStart(audio, position);
|
||||
|
|
|
@ -114,7 +114,6 @@ void CoverWidget::handleSeekFinished(float64 progress) {
|
|||
audioPlayer()->seek(qRound(progress * playbackState.duration));
|
||||
}
|
||||
|
||||
updateTimeLabel();
|
||||
if (exists()) {
|
||||
instance()->stopSeeking();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue