mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
Merge pull request #2831 from JManch/tray-fix-spacing
fix(tray): completely hide tray when it is empty
This commit is contained in:
@ -38,7 +38,7 @@ void Tray::onRemove(std::unique_ptr<Item>& item) {
|
||||
|
||||
auto Tray::update() -> void {
|
||||
// Show tray only when items are available
|
||||
box_.set_visible(!box_.get_children().empty());
|
||||
event_box_.set_visible(!box_.get_children().empty());
|
||||
// Call parent update
|
||||
AModule::update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user