add a default action to a setting: for text click

This commit is contained in:
geoffrey45
2023-01-03 19:56:08 +03:00
committed by Mungai Njoroge
parent c1fb05e2a0
commit 6d84283efd
5 changed files with 16 additions and 3 deletions
@@ -22,6 +22,7 @@ const context_children_show_mode: Setting = {
],
source: () => settings().contextChildrenShowMode,
action: (value: mode) => settings().setContextChildrenShowMode(value),
defaultAction: () => settings().toggleContextChildrenShowMode(),
};
export default [context_children_show_mode];
export default [context_children_show_mode];