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

Method setupAltFormatKeyForModuleList

src/bar.cpp:497–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void waybar::Bar::setupAltFormatKeyForModuleList(const char* module_list_name) {
498 if (config.isMember(module_list_name)) {
499 Json::Value& modules = config[module_list_name];
500 for (const Json::Value& module_name : modules) {
501 if (module_name.isString()) {
502 auto ref = module_name.asString();
503 if (ref.compare(0, 6, "group/") == 0 && ref.size() > 6) {
504 Json::Value& group_modules = config[ref]["modules"];
505 for (const Json::Value& module_name : group_modules) {
506 if (module_name.isString()) {
507 setupAltFormatKeyForModule(module_name.asString());
508 }
509 }
510 } else {
511 setupAltFormatKeyForModule(ref);
512 }
513 }
514 }
515 }
516}
517
518void waybar::Bar::handleSignal(int signal) {
519 for (auto& module : modules_all_) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected