mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
service/mpris: fix position being incorrect after pausing
This commit is contained in:
1 file changed
+3
@@ -312,8 +312,11 @@ void MprisPlayer::onPlaybackStatusChanged() {
|
||||
const auto& status = this->pPlaybackStatus.get();
|
||||
|
||||
if (status == "Playing") {
|
||||
// update the timestamp
|
||||
this->onSeek(this->positionMs() * 1000);
|
||||
this->mPlaybackState = MprisPlaybackState::Playing;
|
||||
} else if (status == "Paused") {
|
||||
this->pausedTime = QDateTime::currentDateTimeUtc();
|
||||
this->mPlaybackState = MprisPlaybackState::Paused;
|
||||
} else if (status == "Stopped") {
|
||||
this->mPlaybackState = MprisPlaybackState::Stopped;
|
||||
|
||||
Reference in new issue
Block a user