doc(actions): Point user to doc when using legacy actions
This commit is contained in:
parent
191fb2972c
commit
1afb333858
@ -241,8 +241,8 @@ custom/menu
|
|||||||
The data has the form ``N-M`` and the action will execute the command
|
The data has the form ``N-M`` and the action will execute the command
|
||||||
in ``menu-N-M-exec``.
|
in ``menu-N-M-exec``.
|
||||||
|
|
||||||
Legacy Action Names
|
Deprecated Action Names
|
||||||
-------------------
|
-----------------------
|
||||||
|
|
||||||
.. deprecated:: 3.5.0
|
.. deprecated:: 3.5.0
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ Afterwards build the complete action string as described in
|
|||||||
Please see :ref:`below <menu-example>` for an example of migrating a typical menu module.
|
Please see :ref:`below <menu-example>` for an example of migrating a typical menu module.
|
||||||
|
|
||||||
+-------------------------+-----------------------+---------------+
|
+-------------------------+-----------------------+---------------+
|
||||||
|Module Type |Legacy Action Name |New Action Name|
|
|Module Type |Deprecated Action Name |New Action Name|
|
||||||
+=========================+=======================+===============+
|
+=========================+=======================+===============+
|
||||||
|``internal/date`` |``datetoggle`` |``toggle`` |
|
|``internal/date`` |``datetoggle`` |``toggle`` |
|
||||||
+-------------------------+-----------------------+---------------+
|
+-------------------------+-----------------------+---------------+
|
||||||
@ -352,9 +352,9 @@ Please see :ref:`below <menu-example>` for an example of migrating a typical men
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Some legacy action names are suffixed with ``N``, this means that action has
|
Some deprecated action names are suffixed with ``N``, this means that that
|
||||||
some additional data (represented by that ``N``), in the new action names,
|
action has some additional data (represented by that ``N``), in the new
|
||||||
this data will appear in exactly the same way, after a period.
|
action names this data will appear in exactly the same way, after a period.
|
||||||
|
|
||||||
.. _menu-example:
|
.. _menu-example:
|
||||||
|
|
||||||
|
@ -479,6 +479,7 @@ bool controller::try_forward_legacy_action(const string& cmd) {
|
|||||||
} else {
|
} else {
|
||||||
m_log.warn("The action '%s' is deprecated, use '#%s.%s.%s' instead!", cmd, module_name, action, data);
|
m_log.warn("The action '%s' is deprecated, use '#%s.%s.%s' instead!", cmd, module_name, action, data);
|
||||||
}
|
}
|
||||||
|
m_log.warn("Consult the 'Actions' page in the polybar documentation for more information.");
|
||||||
m_log.info(
|
m_log.info(
|
||||||
"Forwarding legacy action '%s' to module '%s' as '%s' with data '%s'", cmd, module_name, action, data);
|
"Forwarding legacy action '%s' to module '%s' as '%s' with data '%s'", cmd, module_name, action, data);
|
||||||
if (!module->input(action, data)) {
|
if (!module->input(action, data)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user