| 26 | |
| 27 | namespace waybar::modules { |
| 28 | User::User(const std::string& id, const Json::Value& config) |
| 29 | : AIconLabel(config, "user", id, "{user} {work_H}:{work_M}", 60, false, true, true) { |
| 30 | AIconLabel::box_.set_spacing(0); |
| 31 | if (AIconLabel::iconEnabled()) { |
| 32 | this->init_avatar(AIconLabel::config_); |
| 33 | } |
| 34 | this->init_update_worker(); |
| 35 | } |
| 36 | |
| 37 | bool User::handleToggle(GdkEventButton* const& e) { |
| 38 | if (AIconLabel::config_["open-on-click"].isBool() && |
nothing calls this directly
no test coverage detected