refactor: rm direct dp.emit() call in constructor.

This commit is contained in:
yubo
2026-07-18 21:14:08 +08:00
parent 7f732f0553
commit 5b8c98729f
28 changed files with 3 additions and 41 deletions
-2
View File
@@ -17,8 +17,6 @@ waybar::modules::Backlight::Backlight(const std::string& id, const Json::Value&
: ALabel(config, "backlight", id, "{percent}%", 2),
preferred_device_(config["device"].isString() ? config["device"].asString() : ""),
backend(interval_, [this] { dp.emit(); }) {
dp.emit();
// Set up scroll handler
event_box_.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
event_box_.signal_scroll_event().connect(sigc::mem_fun(*this, &Backlight::handleScroll));