summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2017-09-07 12:27:54 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-06-05 16:35:17 +0200
commit0c06e5fe9063db11049d1b1ecf41825d2a803cd5 (patch)
treee8bafd7b6466e45c71ca43d577099578a4fb2790 /apps/tree.c
parent641e033e33bbb918c7324e9626b4a4e36aa13b8d (diff)
downloadrockbox-0c06e5fe9063db11049d1b1ecf41825d2a803cd5.tar.gz
rockbox-0c06e5fe9063db11049d1b1ecf41825d2a803cd5.tar.bz2
rockbox-0c06e5fe9063db11049d1b1ecf41825d2a803cd5.zip
Add file view menu to file browser
Allows changing file sort options directly through context menu in the file browser rather than having to exit the browser and go through General Settings>File_View Change-Id: Iec124d512dcb934bd261b2144a699c23f536c165
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 938e44d350..8efccf5549 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -359,6 +359,7 @@ static int update_dir(void)
else
#endif
{
+ tc.sort_dir = global_settings.sort_dir;
/* if the tc.currdir has been changed, reload it ...*/
if (strncmp(tc.currdir, lastdir, sizeof(lastdir)) || reload_dir)
{