mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(bluetooth): remove interval
and timer thread
The timer thread was always reading the same value from Rfkill state.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user