mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
Move .empty
CSS class from Img to Box in the Image module
Since the GTK Image is hidden, the CSS class wasn't used for every cases.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user