From 759602af64e10948af9665813af05237e36ad845 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 18 Jul 2020 10:23:04 +0200 Subject: [PATCH] Update mpd.cpp --- src/modules/mpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mpd.cpp b/src/modules/mpd.cpp index 19009cd..957b3c7 100644 --- a/src/modules/mpd.cpp +++ b/src/modules/mpd.cpp @@ -352,7 +352,7 @@ bool waybar::modules::MPD::handlePlayPause(GdkEventButton* const& e) { } bool waybar::modules::MPD::stopped() { - return connection_ == nullptr || state_ == MPD_STATE_UNKNOWN || state_ == MPD_STATE_STOP; + return connection_ == nullptr || state_ == MPD_STATE_UNKNOWN || state_ == MPD_STATE_STOP || status_ == nullptr; } bool waybar::modules::MPD::playing() { return connection_ != nullptr && state_ == MPD_STATE_PLAY; }