From d200fd904dc4832d6df541c10875dee664e0e281 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 14 Jan 2024 01:41:42 -0500 Subject: MPRIS plugin: fix stopping breaking everything on KDE. --- mpris-plugin/qmpriswrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpris-plugin/qmpriswrapper.cpp b/mpris-plugin/qmpriswrapper.cpp index bc20b61..8275939 100644 --- a/mpris-plugin/qmpriswrapper.cpp +++ b/mpris-plugin/qmpriswrapper.cpp @@ -25,12 +25,12 @@ void QMPrisWrapper::post_creation() api->registerUIHook("main.stop", [this](const void* a, void* _) { tracklist->TrackListReplaced({}, QDBusObjectPath("/")); this->notifyPropertyChange(PLAYER_INTERFACE, "Metadata", player->getMetadata()); - this->notifyPropertyChange(PLAYER_INTERFACE, "PlaybackStatus", player->getPlaybackStatus()); this->notifyPropertyChange(PLAYER_INTERFACE, "CanPause", player->getCanPause()); this->notifyPropertyChange(PLAYER_INTERFACE, "CanPlay", player->getCanPlay()); this->notifyPropertyChange(PLAYER_INTERFACE, "CanSeek", player->getCanSeek()); this->notifyPropertyChange(PLAYER_INTERFACE, "CanGoNext", player->getCanGoNext()); this->notifyPropertyChange(PLAYER_INTERFACE, "CanGoPrevious", player->getCanGoPrevious()); + this->notifyPropertyChange(PLAYER_INTERFACE, "PlaybackStatus", player->getPlaybackStatus()); }, nullptr); api->registerUIHook("main.start", [this](const void* a, void* _) { tracklist->TrackListReplaced(tracklist->getTracks(), QDBusObjectPath("/org/chrisoft/qmidiplayer/dummylist/0")); -- cgit v1.2.3