Merge pull request #5148 from JangXa/master
Fallback formatting when format-paused is missing uses ALabel
This commit is contained in:
@@ -124,8 +124,9 @@ void waybar::modules::MPD::setLabel() {
|
|||||||
label_.get_style_context()->add_class("playing");
|
label_.get_style_context()->add_class("playing");
|
||||||
label_.get_style_context()->remove_class("paused");
|
label_.get_style_context()->remove_class("paused");
|
||||||
} else if (paused()) {
|
} else if (paused()) {
|
||||||
format = config_["format-paused"].isString() ? config_["format-paused"].asString()
|
if (config_["format-paused"].isString()) {
|
||||||
: config_["format"].asString();
|
format = config_["format-paused"].asString();
|
||||||
|
}
|
||||||
label_.get_style_context()->add_class("paused");
|
label_.get_style_context()->add_class("paused");
|
||||||
label_.get_style_context()->remove_class("playing");
|
label_.get_style_context()->remove_class("playing");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user