From de3240b861c883e6f562ec828b93f0dbcb064679 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Mon, 25 Feb 2019 14:22:52 +0100 Subject: [PATCH] fix(xkeyboard): Print deprecation message `config::warn_deprecated` does not accept keys of the form `<...>` and strips the surrounding brackets like `load_label` does --- src/modules/xkeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/xkeyboard.cpp b/src/modules/xkeyboard.cpp index 940a3de8..2470750d 100644 --- a/src/modules/xkeyboard.cpp +++ b/src/modules/xkeyboard.cpp @@ -63,7 +63,7 @@ namespace modules { } 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 // 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);