Merge pull request #4333 from Arkoniak/relative_paths_in_includes

Relative paths in included configs
This commit is contained in:
Alexis Rouillard
2025-08-08 08:53:55 +02:00
committed by GitHub
4 changed files with 27 additions and 5 deletions

View File

@ -529,7 +529,11 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos,
auto vertical = (group != nullptr ? group->getBox().get_orientation()
: box_.get_orientation()) == Gtk::ORIENTATION_VERTICAL;
auto* group_module = new waybar::Group(id_name, class_name, config[ref], vertical);
auto group_config = config[ref];
if (group_config["modules"].isNull()) {
spdlog::warn("Group definition '{}' has not been found, group will be hidden", ref);
}
auto* group_module = new waybar::Group(id_name, class_name, group_config, vertical);
getModules(factory, ref, group_module);
module = group_module;
} else {