feat(Group): enhance widget visibility management - set visibility instantly on module update using dynamic signal handling.

Improve performance - manage the visibility of updated module only instead of iterating over all modules on `hide_group`.
This commit is contained in:
Piotr Piwoński
2025-03-30 14:49:07 +00:00
parent 653732dfc6
commit 67df5f5838
5 changed files with 51 additions and 35 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ void waybar::Bar::getModules(const Factory& factory, const std::string& pos,
std::shared_ptr<AModule> module_sp(module);
modules_all_.emplace_back(module_sp);
if (group != nullptr) {
group->addWidget(*module);
group->addWidget(module);
} else {
if (pos == "modules-left") {
modules_left_.emplace_back(module_sp);