Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Sep 19, 2024
1 parent b5395f4 commit 21af48f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/AAppIconLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ void AAppIconLabel::updateAppIcon() {
update_app_icon_ = false;
if (app_icon_name_.empty()) {
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_);
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);
Expand Down
8 changes: 5 additions & 3 deletions src/modules/cava.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ auto waybar::modules::Cava::update() -> void {
ALabel::update();
label_.get_style_context()->add_class("updated");
}

label_.get_style_context()->remove_class("silent");
} else {
upThreadDelay(frame_time_milsec_, suspend_silence_delay_);
if (hide_on_silence_) label_.hide();
else if (config_["format_silent"].isString()) label_.set_markup(format_silent_);
if (hide_on_silence_)
label_.hide();
else if (config_["format_silent"].isString())
label_.set_markup(format_silent_);

label_.get_style_context()->add_class("silent");
label_.get_style_context()->remove_class("updated");
Expand Down

0 comments on commit 21af48f

Please sign in to comment.