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:
patrick96 2019-02-25 14:22:52 +01:00 committed by NBonaparte
parent fbd870c343
commit de3240b861
1 changed files with 1 additions and 1 deletions

View File

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