summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/eq_menu.c8
-rw-r--r--apps/menus/eq_menu.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 656fe7b282..79389ae561 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -51,6 +51,8 @@
51#include "option_select.h" 51#include "option_select.h"
52#include "string-extra.h" 52#include "string-extra.h"
53 53
54static void eq_apply(void);
55
54/* 56/*
55 * Utility functions 57 * Utility functions
56 */ 58 */
@@ -69,6 +71,12 @@ const char* eq_precut_format(char* buffer, size_t buffer_size, int value, const
69 return buffer; 71 return buffer;
70} 72}
71 73
74void eq_enabled_option_callback(bool enabled)
75{
76 (void)enabled;
77 eq_apply();
78}
79
72/* 80/*
73 * Settings functions 81 * Settings functions
74 */ 82 */
diff --git a/apps/menus/eq_menu.h b/apps/menus/eq_menu.h
index 04e8be2ead..f99f83d94f 100644
--- a/apps/menus/eq_menu.h
+++ b/apps/menus/eq_menu.h
@@ -48,4 +48,7 @@ const char* eq_q_format(char* buffer, size_t buffer_size, int value,
48const char* eq_precut_format(char* buffer, size_t buffer_size, int value, 48const char* eq_precut_format(char* buffer, size_t buffer_size, int value,
49 const char* unit); 49 const char* unit);
50 50
51/* callbacks for settings_list.c */
52void eq_enabled_option_callback(bool enabled);
53
51#endif 54#endif