fix: check format-source before use

This commit is contained in:
Andrea Scarpino 2024-08-20 13:57:29 +02:00
parent c5a4266329
commit 0fb1957dae
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}