Merge pull request #3534 from ilpianista/bugfix/check-format-source

fix: check format-source before use
This commit is contained in:
Alexis Rouillard 2024-08-20 14:03:50 +02:00 committed by GitHub
commit 26329b660a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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();
}
}