refactor(bluetooth): remove interval and timer thread

The timer thread was always reading the same value from Rfkill state.
This commit is contained in:
Aleksei Bavshin
2021-02-02 20:10:27 -08:00
parent ecc32ddd18
commit 52dd3d2446
3 changed files with 1 additions and 16 deletions

View File

@ -2,7 +2,6 @@
#include "ALabel.hpp"
#include "util/rfkill.hpp"
#include "util/sleeper_thread.hpp"
namespace waybar::modules {
@ -13,8 +12,7 @@ class Bluetooth : public ALabel {
auto update() -> void;
private:
util::SleeperThread thread_;
util::Rfkill rfkill_;
util::Rfkill rfkill_;
};
} // namespace waybar::modules