Merge pull request #2049 from 2e0byo/lint

This commit is contained in:
Alex 2023-03-08 15:46:41 +01:00 committed by GitHub
commit 9a0dbd555d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -124,8 +124,7 @@ 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");