We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0594574 commit bef7df8Copy full SHA for bef7df8
1 file changed
src/modules/mpd/mpd.cpp
@@ -124,8 +124,9 @@ void waybar::modules::MPD::setLabel() {
124
125
std::string stateIcon = "";
126
bool no_song = song_.get() == nullptr;
127
- if (stopped() || no_song) {
128
- if (no_song) spdlog::warn("Bug in mpd: no current song but state is not stopped.");
+ bool is_stopped = stopped();
+ if (is_stopped || no_song) {
129
+ if (no_song && !is_stopped) spdlog::warn("mpd: no current song while state is not stopped");
130
format =
131
config_["format-stopped"].isString() ? config_["format-stopped"].asString() : "stopped";
132
label_.get_style_context()->add_class("stopped");
0 commit comments