chore: lint
This commit is contained in:
parent
b5395f4e6f
commit
21af48fdc9
|
@ -154,8 +154,7 @@ void AAppIconLabel::updateAppIcon() {
|
||||||
update_app_icon_ = false;
|
update_app_icon_ = false;
|
||||||
if (app_icon_name_.empty()) {
|
if (app_icon_name_.empty()) {
|
||||||
image_.set_visible(false);
|
image_.set_visible(false);
|
||||||
}
|
} else if (app_icon_name_.front() == '/') {
|
||||||
else if (app_icon_name_.front() == '/') {
|
|
||||||
auto pixbuf = Gdk::Pixbuf::create_from_file(app_icon_name_);
|
auto pixbuf = Gdk::Pixbuf::create_from_file(app_icon_name_);
|
||||||
int scaled_icon_size = app_icon_size_ * image_.get_scale_factor();
|
int scaled_icon_size = app_icon_size_ * image_.get_scale_factor();
|
||||||
pixbuf = Gdk::Pixbuf::create_from_file(app_icon_name_, scaled_icon_size, scaled_icon_size);
|
pixbuf = Gdk::Pixbuf::create_from_file(app_icon_name_, scaled_icon_size, scaled_icon_size);
|
||||||
|
|
|
@ -179,8 +179,10 @@ auto waybar::modules::Cava::update() -> void {
|
||||||
label_.get_style_context()->remove_class("silent");
|
label_.get_style_context()->remove_class("silent");
|
||||||
} else {
|
} else {
|
||||||
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
|
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
|
||||||
if (hide_on_silence_) label_.hide();
|
if (hide_on_silence_)
|
||||||
else if (config_["format_silent"].isString()) label_.set_markup(format_silent_);
|
label_.hide();
|
||||||
|
else if (config_["format_silent"].isString())
|
||||||
|
label_.set_markup(format_silent_);
|
||||||
|
|
||||||
label_.get_style_context()->add_class("silent");
|
label_.get_style_context()->add_class("silent");
|
||||||
label_.get_style_context()->remove_class("updated");
|
label_.get_style_context()->remove_class("updated");
|
||||||
|
|
Loading…
Reference in New Issue