service/mpris: fix display position when paused

This commit is contained in:
outfoxxed committed 2024-08-18 13:07:52 -07:00
1 parent f89c504b55
commit e223408143
1 file changed
+1
+1
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();
}