Skip to content

Commit e223408

Browse files
committed
service/mpris: fix display position when paused
1 parent f89c504 commit e223408

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/mpris/player.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ void MprisPlayer::setPosition(qreal position) {
217217
void MprisPlayer::onPositionChanged() {
218218
const bool firstChange = !this->lastPositionTimestamp.isValid();
219219
this->lastPositionTimestamp = QDateTime::currentDateTimeUtc();
220+
this->pausedTime = this->lastPositionTimestamp;
220221
emit this->positionChanged();
221222
if (firstChange) emit this->positionSupportedChanged();
222223
}

0 commit comments

Comments
 (0)