summaryrefslogtreecommitdiff
path: root/apps/menus/settings_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/settings_menu.c')
-rw-r--r--apps/menus/settings_menu.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index b49a8a813d..5de3a305f9 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -103,6 +103,15 @@ MENUITEM_SETTING(browse_current, &global_settings.browse_current, NULL);
103#ifdef HAVE_LCD_BITMAP 103#ifdef HAVE_LCD_BITMAP
104MENUITEM_SETTING(show_path_in_browser, &global_settings.show_path_in_browser, NULL); 104MENUITEM_SETTING(show_path_in_browser, &global_settings.show_path_in_browser, NULL);
105#endif 105#endif
106static int clear_start_directory(void)
107{
108 strcpy(global_settings.start_directory, "/");
109 settings_save();
110 splash(HZ, ID2P(LANG_RESET_DONE_CLEAR));
111 return false;
112}
113MENUITEM_FUNCTION(clear_start_directory_item, 0, ID2P(LANG_RESET_START_DIR),
114 clear_start_directory, NULL, NULL, Icon_file_view_menu);
106static int fileview_callback(int action,const struct menu_item_ex *this_item) 115static int fileview_callback(int action,const struct menu_item_ex *this_item)
107{ 116{
108 static int oldval; 117 static int oldval;
@@ -124,8 +133,9 @@ MAKE_MENU(file_menu, ID2P(LANG_FILE), 0, Icon_file_view_menu,
124 &sort_case, &sort_dir, &sort_file, &interpret_numbers, 133 &sort_case, &sort_dir, &sort_file, &interpret_numbers,
125 &dirfilter, &show_filename_ext, &browse_current, 134 &dirfilter, &show_filename_ext, &browse_current,
126#ifdef HAVE_LCD_BITMAP 135#ifdef HAVE_LCD_BITMAP
127 &show_path_in_browser 136 &show_path_in_browser,
128#endif 137#endif
138 &clear_start_directory_item
129 ); 139 );
130/* FILE VIEW MENU */ 140/* FILE VIEW MENU */
131/***********************************/ 141/***********************************/