summaryrefslogtreecommitdiff
path: root/apps/menus/recording_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/recording_menu.c')
-rw-r--r--apps/menus/recording_menu.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c
index 62af2f94fe..50b49c9db9 100644
--- a/apps/menus/recording_menu.c
+++ b/apps/menus/recording_menu.c
@@ -62,6 +62,7 @@
62#endif 62#endif
63#include "action.h" 63#include "action.h"
64 64
65
65static bool no_source_in_menu = true; 66static bool no_source_in_menu = true;
66int recmenu_callback(int action,const struct menu_item_ex *this_item); 67int recmenu_callback(int action,const struct menu_item_ex *this_item);
67 68
@@ -803,9 +804,24 @@ MENUITEM_FUNCTION(rectrigger_item, 0, ID2P(LANG_RECORD_TRIGGER),
803 804
804 805
805 806
807/* from main_menu.c */
808struct browse_folder_info {
809 const char* dir;
810 int show_options;
811};
812static struct browse_folder_info rec_config_browse = {RECPRESETS_DIR, SHOW_CFG};
813int browse_folder(void *param);
814MENUITEM_FUNCTION(browse_recconfigs, MENU_FUNC_USEPARAM, ID2P(LANG_CUSTOM_CFG),
815 browse_folder, (void*)&rec_config_browse, NULL, Icon_Config);
816static int write_settings_file(void)
817{
818 return settings_save_config(SETTINGS_SAVE_RECPRESETS);
819}
820MENUITEM_FUNCTION(save_recpresets_item, 0, ID2P(LANG_SAVE_SETTINGS),
821 write_settings_file, NULL, NULL, Icon_Config);
806 822
807 823MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS),
808MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS), NULL, Icon_Recording, 824 NULL, Icon_Recording,
809#if CONFIG_CODEC == MAS3587F 825#if CONFIG_CODEC == MAS3587F
810 &rec_quality, 826 &rec_quality,
811#endif 827#endif
@@ -827,6 +843,7 @@ MAKE_MENU(recording_setting_menu, ID2P(LANG_RECORDING_SETTINGS), NULL, Icon_Reco
827#ifdef HAVE_AGC 843#ifdef HAVE_AGC
828 &agc_preset, &agc_cliptime, 844 &agc_preset, &agc_cliptime,
829#endif 845#endif
846 &browse_recconfigs, &save_recpresets_item
830); 847);
831 848
832bool recording_menu(bool no_source) 849bool recording_menu(bool no_source)