From ce8c13788a5e0f82acdffe60111d50f34a8b6b24 Mon Sep 17 00:00:00 2001 From: Prokhor40 Date: Fri, 2 Dec 2022 19:32:03 +0300 Subject: [PATCH] fix formatting issues --- src/modules/mpd/mpd.cpp | 4 ++-- src/modules/pulseaudio.cpp | 2 +- src/modules/sndio.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/mpd/mpd.cpp b/src/modules/mpd/mpd.cpp index bc8809bf..2c855d39 100644 --- a/src/modules/mpd/mpd.cpp +++ b/src/modules/mpd/mpd.cpp @@ -96,7 +96,7 @@ void waybar::modules::MPD::setLabel() { auto format = config_["format-disconnected"].isString() ? config_["format-disconnected"].asString() : "disconnected"; - if(format.empty()) { + if (format.empty()) { label_.set_markup(format); label_.show(); } else { @@ -183,7 +183,7 @@ void waybar::modules::MPD::setLabel() { fmt::arg("consumeIcon", consumeIcon), fmt::arg("randomIcon", randomIcon), fmt::arg("repeatIcon", repeatIcon), fmt::arg("singleIcon", singleIcon), fmt::arg("filename", filename)); - if(text.empty()) { + if (text.empty()) { label_.hide(); } else { label_.show(); diff --git a/src/modules/pulseaudio.cpp b/src/modules/pulseaudio.cpp index 8c70436e..c7979976 100644 --- a/src/modules/pulseaudio.cpp +++ b/src/modules/pulseaudio.cpp @@ -299,7 +299,7 @@ auto waybar::modules::Pulseaudio::update() -> void { format, fmt::arg("desc", desc_), fmt::arg("volume", volume_), fmt::arg("format_source", format_source), fmt::arg("source_volume", source_volume_), fmt::arg("source_desc", source_desc_), fmt::arg("icon", getIcon(volume_, getPulseIcon()))); - if(text.empty()) { + if (text.empty()) { label_.hide(); } else { label_.set_markup(text); diff --git a/src/modules/sndio.cpp b/src/modules/sndio.cpp index 08331fcf..7a358c18 100644 --- a/src/modules/sndio.cpp +++ b/src/modules/sndio.cpp @@ -111,7 +111,7 @@ auto Sndio::update() -> void { } auto text = fmt::format(format, fmt::arg("volume", vol), fmt::arg("raw_value", volume_)); - if(text.empty()) { + if (text.empty()) { label_.hide(); } else { label_.set_markup(text);