From cc4370f1b29920beb50951cd1d6cb99989722dfb Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 1 Jul 2023 11:08:31 +0200 Subject: [PATCH] fix: build --- include/modules/network.hpp | 2 +- src/modules/network.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/modules/network.hpp b/include/modules/network.hpp index 8568bf9b..47701b4e 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 3079794c..d9005ddd 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