mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(Tray): handle item unregister
This commit is contained in:
@ -198,14 +198,14 @@ auto waybar::Bar::setupWidgets() -> void
|
||||
getModules(factory, "modules-left");
|
||||
getModules(factory, "modules-center");
|
||||
getModules(factory, "modules-right");
|
||||
for (auto& module : modules_left_) {
|
||||
for (auto const& module : modules_left_) {
|
||||
left.pack_start(*module, false, true, 0);
|
||||
}
|
||||
for (auto& module : modules_center_) {
|
||||
for (auto const& module : modules_center_) {
|
||||
center.pack_start(*module, true, true, 0);
|
||||
}
|
||||
std::reverse(modules_right_.begin(), modules_right_.end());
|
||||
for (auto& module : modules_right_) {
|
||||
for (auto const& module : modules_right_) {
|
||||
right.pack_end(*module, false, false, 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user