| 495 | } |
| 496 | |
| 497 | void 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 | |
| 518 | void waybar::Bar::handleSignal(int signal) { |
| 519 | for (auto& module : modules_all_) { |
nothing calls this directly
no outgoing calls
no test coverage detected