MCPcopy Create free account
hub / github.com/Alexays/Waybar / User

Method User

src/modules/user.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27namespace waybar::modules {
28User::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
37bool User::handleToggle(GdkEventButton* const& e) {
38 if (AIconLabel::config_["open-on-click"].isBool() &&

Callers

nothing calls this directly

Calls 2

init_avatarMethod · 0.95
init_update_workerMethod · 0.95

Tested by

no test coverage detected