Add File Manager Return and Exit navigation

Description:
- Add an Exit button at the right end of the File Manager toolbar. It finishes the File Manager activity from any directory.
- Remember the directory supplied when Game files or Proton prefix opens the File Manager. Show a Return to start button in the toolbar for those launches, and use it to reopen that directory after the user switches storage locations or browses elsewhere.
- When returning, restore the starting storage root and close search or favorites views. Show a message if the starting directory is no longer available.
- Add accessible labels for both buttons while retaining the existing toolbar actions and File Manager styling.

Why it was needed:
- Exiting previously required repeatedly navigating back through directories to the original location.
- Switching from the game's initial directory to Internal storage offered no direct route back, leaving users to find the path manually through Linux system storage.
This commit is contained in:
K11MCH1 committed 2026-10-22 16:00:56 +09:00
1 parent 8ccd771059
commit 3f2aea4d08
3 files changed
+39 -5

No files matched your search

+3
View File
@@ -1543,6 +1543,9 @@
<string name="fm_conflict_skip">Skip</string>
<string name="fm_select_this_folder">Select this folder</string>
<string name="fm_back">Back</string>
<string name="fm_exit">Exit</string>
<string name="fm_return_to_start">Return to start</string>
<string name="fm_start_unavailable">Starting folder is no longer available</string>
<string name="fm_drive_not_readable">%1$s is mounted but not readable right now</string>
<string name="fm_list_view">List view</string>
<string name="fm_grid_view">Grid view</string>