Merge pull request #2862 from Sryther/master

Move `.empty` CSS class from Img to Box in the Image module
pull/2874/head
Alexis Rouillard 2024-01-25 16:12:02 +01:00 committed by GitHub
commit 5f115785cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -63,11 +63,11 @@ auto waybar::modules::Image::update() -> void {
}
image_.set(pixbuf);
image_.show();
image_.get_style_context()->remove_class("empty");
box_.get_style_context()->remove_class("empty");
} else {
image_.clear();
image_.hide();
image_.get_style_context()->add_class("empty");
box_.get_style_context()->add_class("empty");
}
AModule::update();