diff --git a/include/modules/sni/snw.hpp b/include/modules/sni/snw.hpp index d67ef7ea..2ee2b6cc 100644 --- a/include/modules/sni/snw.hpp +++ b/include/modules/sni/snw.hpp @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace waybar::modules::SNI { @@ -44,3 +44,4 @@ private: }; } // namespace waybar::modules::SNI + diff --git a/src/modules/sni/sni.cpp b/src/modules/sni/sni.cpp index 6f5837b0..1882f99c 100644 --- a/src/modules/sni/sni.cpp +++ b/src/modules/sni/sni.cpp @@ -165,7 +165,8 @@ waybar::modules::SNI::Item::extractPixBuf(GVariant *variant) { return Glib::RefPtr{}; } -void waybar::modules::SNI::Item::updateImage() { +void waybar::modules::SNI::Item::updateImage() +{ if (!icon_name.empty()) { auto pixbuf = getIconByName(icon_name, icon_size); if (pixbuf->gobj() == nullptr) { diff --git a/src/modules/sni/snw.cpp b/src/modules/sni/snw.cpp index 6db5d710..208cc1e1 100644 --- a/src/modules/sni/snw.cpp +++ b/src/modules/sni/snw.cpp @@ -2,7 +2,6 @@ #include - using namespace waybar::modules::SNI; Watcher::Watcher() @@ -44,7 +43,6 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name, std::cout << "Bus aquired" << std::endl; } - gboolean Watcher::handleRegisterHost(Watcher* obj, GDBusMethodInvocation* invocation, const gchar* service) { @@ -182,4 +180,4 @@ void Watcher::updateRegisteredItems(SnOrgKdeStatusNotifierWatcher* obj) obj, items); g_variant_unref(variant); g_free(items); -} +} \ No newline at end of file