diff --git a/include/modules/network.hpp b/include/modules/network.hpp index 8568bf9..47701b4 100644 --- a/include/modules/network.hpp +++ b/include/modules/network.hpp @@ -78,7 +78,6 @@ class Network : public ALabel { int32_t signal_strength_dbm_; uint8_t signal_strength_; std::string signal_strength_app_; - float frequency_; uint32_t route_priority; util::SleeperThread thread_; @@ -86,6 +85,7 @@ class Network : public ALabel { #ifdef WANT_RFKILL util::Rfkill rfkill_; #endif + float frequency_; }; } // namespace waybar::modules diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 3079794..d9005dd 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -91,11 +91,10 @@ waybar::modules::Network::Network(const std::string &id, const Json::Value &conf cidr_(0), signal_strength_dbm_(0), signal_strength_(0), - frequency_(0.0), #ifdef WANT_RFKILL - rfkill_{RFKILL_TYPE_WLAN} + rfkill_{RFKILL_TYPE_WLAN}, #endif -{ + frequency_(0.0), { // Start with some "text" in the module's label_. update() will then // update it. Since the text should be different, update() will be able