summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 6a11e723b1..48e8c1dda5 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -98,6 +98,19 @@ static bool show_icons(void)
98 return set_bool( (char *)str(LANG_SHOW_ICONS), &global_settings.show_icons ); 98 return set_bool( (char *)str(LANG_SHOW_ICONS), &global_settings.show_icons );
99} 99}
100 100
101static bool show_path(void)
102{
103 static const struct opt_items names[3] = {
104 { STR(LANG_OFF) },
105 { STR(LANG_SHOW_PATH_CURRENT) },
106 { STR(LANG_SHOW_PATH_FULL) },
107 };
108
109 return set_option(str(LANG_SHOW_PATH),
110 &global_settings.show_path_in_browser,
111 INT, names, 3, NULL);
112}
113
101/** 114/**
102 * Menu to set the option to scroll paginated 115 * Menu to set the option to scroll paginated
103 */ 116 */
@@ -1737,6 +1750,7 @@ static bool fileview_settings_menu(void)
1737 { ID2P(LANG_FILTER), dir_filter }, 1750 { ID2P(LANG_FILTER), dir_filter },
1738 { ID2P(LANG_FOLLOW), browse_current }, 1751 { ID2P(LANG_FOLLOW), browse_current },
1739 { ID2P(LANG_SHOW_ICONS), show_icons }, 1752 { ID2P(LANG_SHOW_ICONS), show_icons },
1753 { ID2P(LANG_SHOW_PATH), show_path },
1740 { ID2P(LANG_TAGCACHE), tagcache_settings_menu}, 1754 { ID2P(LANG_TAGCACHE), tagcache_settings_menu},
1741 }; 1755 };
1742 1756