Merge pull request #2862 from Sryther/master
Move `.empty` CSS class from Img to Box in the Image modulepull/2874/head
commit
5f115785cf
|
@ -63,11 +63,11 @@ auto waybar::modules::Image::update() -> void {
|
||||||
}
|
}
|
||||||
image_.set(pixbuf);
|
image_.set(pixbuf);
|
||||||
image_.show();
|
image_.show();
|
||||||
image_.get_style_context()->remove_class("empty");
|
box_.get_style_context()->remove_class("empty");
|
||||||
} else {
|
} else {
|
||||||
image_.clear();
|
image_.clear();
|
||||||
image_.hide();
|
image_.hide();
|
||||||
image_.get_style_context()->add_class("empty");
|
box_.get_style_context()->add_class("empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
AModule::update();
|
AModule::update();
|
||||||
|
|
Loading…
Reference in New Issue