mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-28 02:55:05 +00:00
service/mpris: fix display position when paused
This commit is contained in:
1 file changed
+1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user