mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: make linter happy.
This commit is contained in:
parent
5b6e9d4e34
commit
a9015c7c98
@ -124,8 +124,7 @@ void waybar::modules::MPD::setLabel() {
|
||||
std::string stateIcon = "";
|
||||
bool no_song = song_.get() == nullptr;
|
||||
if (stopped() || no_song) {
|
||||
if (no_song)
|
||||
spdlog::warn("Bug in mpd: no current song but state is not stopped.");
|
||||
if (no_song) spdlog::warn("Bug in mpd: no current song but state is not stopped.");
|
||||
format =
|
||||
config_["format-stopped"].isString() ? config_["format-stopped"].asString() : "stopped";
|
||||
label_.get_style_context()->add_class("stopped");
|
||||
|
Loading…
Reference in New Issue
Block a user