refactor: make linter happy.

pull/2049/head
John Maximilian 2023-03-08 14:31:53 +00:00
parent 5b6e9d4e34
commit a9015c7c98
No known key found for this signature in database
GPG Key ID: 52798DA528FA3CCF
2 changed files with 3 additions and 4 deletions

View File

@ -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");

View File

@ -173,7 +173,7 @@ void waybar::modules::Wireplumber::onDefaultNodesApiChanged(waybar::modules::Wir
spdlog::debug( spdlog::debug(
"[{}]: (onDefaultNodesApiChanged) - Default node changed to -> Node(name: {}, id: {})", "[{}]: (onDefaultNodesApiChanged) - Default node changed to -> Node(name: {}, id: {})",
self->name_, default_node_name, default_node_id); self->name_, default_node_name, default_node_id);
g_free(self->default_node_name_); g_free(self->default_node_name_);
self->default_node_name_ = g_strdup(default_node_name); self->default_node_name_ = g_strdup(default_node_name);
updateVolume(self, default_node_id); updateVolume(self, default_node_id);