service/mpris: fix display position when paused

This commit is contained in:
outfoxxed 2024-08-18 13:07:52 -07:00
parent f89c504b55
commit e223408143
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -217,6 +217,7 @@ void MprisPlayer::setPosition(qreal position) {
void MprisPlayer::onPositionChanged() {
const bool firstChange = !this->lastPositionTimestamp.isValid();
this->lastPositionTimestamp = QDateTime::currentDateTimeUtc();
this->pausedTime = this->lastPositionTimestamp;
emit this->positionChanged();
if (firstChange) emit this->positionSupportedChanged();
}