Merge pull request #2049 from 2e0byo/lint
commit
9a0dbd555d
|
@ -123,9 +123,8 @@ void waybar::modules::MPD::setLabel() {
|
||||||
|
|
||||||
std::string stateIcon = "";
|
std::string stateIcon = "";
|
||||||
bool no_song = song_.get() == nullptr;
|
bool no_song = song_.get() == nullptr;
|
||||||
if (stopped() || no_song ) {
|
if (stopped() || no_song) {
|
||||||
if (no_song)
|
if (no_song) spdlog::warn("Bug in mpd: no current song but state is not stopped.");
|
||||||
spdlog::warn("Bug in mpd: no current song but state is not stopped.");
|
|
||||||
format =
|
format =
|
||||||
config_["format-stopped"].isString() ? config_["format-stopped"].asString() : "stopped";
|
config_["format-stopped"].isString() ? config_["format-stopped"].asString() : "stopped";
|
||||||
label_.get_style_context()->add_class("stopped");
|
label_.get_style_context()->add_class("stopped");
|
||||||
|
|
Loading…
Reference in New Issue