diff options
author | Chris Xiong <chirs241097@gmail.com> | 2024-01-14 01:41:42 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2024-01-14 01:41:42 -0500 |
commit | d200fd904dc4832d6df541c10875dee664e0e281 (patch) | |
tree | 4e9800d779fddd1a5860b4032023297945e3e71d | |
parent | dac874aec5156c2b5b9c761da1dfd99b314e81e4 (diff) | |
download | QMidiPlayer-d200fd904dc4832d6df541c10875dee664e0e281.tar.xz |
MPRIS plugin: fix stopping breaking everything on KDE.
-rw-r--r-- | mpris-plugin/qmpriswrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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")); |