filetree: restrict keep_directory setting (c86fd23) to Files menu
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 4b9c78e01b885ca32b5948c5ea96557a6fbe659b Author: Christian Soffke <[email protected]> Date: Tue Mar 31 22:49:15 2026 +0200 filetree: restrict keep_directory setting (c86fd23) to Files menu Prevents the most recent File Browser directory from being overwritten when ft_load is called from places other than the Files menu, such as when browsing the Plugins menu or the Playlist Catalogue (coming from the main menu, or from the "Add to Playlist" context menu). Change-Id: Idbdb2d92c6abcc5cca022d3025b48e0cd4b32f17 diff --git a/apps/filetree.c b/apps/filetree.c index 77b902db10..2d22818608 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -454,7 +454,7 @@ int ft_load(struct tree_context* c, const char* tempdir) tree_unlock_cache(c); - if (global_settings.keep_directory) + if (global_settings.keep_directory && get_current_activity() == ACTIVITY_FILEBROWSER) { path_append(global_status.browse_last_folder, c->currdir, PA_SEP_HARD, sizeof(global_status.browse_last_folder)); -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs