Skip to content

Commit

Permalink
fix: check format-source before use
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpianista committed Aug 20, 2024
1 parent c5a4266 commit 0fb1957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/pulseaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ auto waybar::modules::Pulseaudio::update() -> void {
}
} else {
label_.get_style_context()->remove_class("source-muted");
if (config_["format-source-muted"].isString()) {
if (config_["format-source"].isString()) {
format_source = config_["format-source"].asString();
}
}
Expand Down

0 comments on commit 0fb1957

Please sign in to comment.