fix: build

This commit is contained in:
Alex 2023-07-01 11:08:31 +02:00
parent 85854c71d6
commit cc4370f1b2
2 changed files with 3 additions and 4 deletions

View File

@ -78,7 +78,6 @@ class Network : public ALabel {
int32_t signal_strength_dbm_; int32_t signal_strength_dbm_;
uint8_t signal_strength_; uint8_t signal_strength_;
std::string signal_strength_app_; std::string signal_strength_app_;
float frequency_;
uint32_t route_priority; uint32_t route_priority;
util::SleeperThread thread_; util::SleeperThread thread_;
@ -86,6 +85,7 @@ class Network : public ALabel {
#ifdef WANT_RFKILL #ifdef WANT_RFKILL
util::Rfkill rfkill_; util::Rfkill rfkill_;
#endif #endif
float frequency_;
}; };
} // namespace waybar::modules } // namespace waybar::modules

View File

@ -91,11 +91,10 @@ waybar::modules::Network::Network(const std::string &id, const Json::Value &conf
cidr_(0), cidr_(0),
signal_strength_dbm_(0), signal_strength_dbm_(0),
signal_strength_(0), signal_strength_(0),
frequency_(0.0),
#ifdef WANT_RFKILL #ifdef WANT_RFKILL
rfkill_{RFKILL_TYPE_WLAN} rfkill_{RFKILL_TYPE_WLAN},
#endif #endif
{ frequency_(0.0), {
// Start with some "text" in the module's label_. update() will then // Start with some "text" in the module's label_. update() will then
// update it. Since the text should be different, update() will be able // update it. Since the text should be different, update() will be able