mirror of https://github.com/polybar/polybar.git
fix(xkeyboard): Print deprecation message
`config::warn_deprecated` does not accept keys of the form `<...>` and strips the surrounding brackets like `load_label` does
This commit is contained in:
parent
fbd870c343
commit
de3240b861
|
@ -63,7 +63,7 @@ namespace modules {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_formatter->has(TAG_LABEL_INDICATOR)) {
|
if (m_formatter->has(TAG_LABEL_INDICATOR)) {
|
||||||
m_conf.warn_deprecated(name(), TAG_LABEL_INDICATOR, "label-indicator-on");
|
m_conf.warn_deprecated(name(), "label-indicator", "label-indicator-on");
|
||||||
// load an empty label if 'label-indicator-off' is not explicitly specified so
|
// load an empty label if 'label-indicator-off' is not explicitly specified so
|
||||||
// no existing user configs are broken (who expect nothing to be shown when indicator is off)
|
// no existing user configs are broken (who expect nothing to be shown when indicator is off)
|
||||||
m_indicator_state_off = load_optional_label(m_conf, name(), "label-indicator-off"s, ""s);
|
m_indicator_state_off = load_optional_label(m_conf, name(), "label-indicator-off"s, ""s);
|
||||||
|
|
Loading…
Reference in New Issue