Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: opening mode #239

Merged
merged 4 commits into from
Feb 3, 2025
Merged

feat!: opening mode #239

merged 4 commits into from
Feb 3, 2025

Conversation

fluxxcode
Copy link
Owner

This PR adds a new configuration option opening_mode which allows to further specify which directory is loaded when the file dialog is opened.

Currently the following options are available:

  • OpeningMode::AlwaysInitialDir: The configured initial directory (FileDialog::initial_directory) should always be opened
  • OpeningMode::LastVisitedDir: The directory most recently visited by the user should be opened regardless of whether anything was picked
  • OpeningMode::LastPickedDir: The last directory from which the user picked an item should be opened

Which directory was last visited and from which directory the user selected an item is stored in FileDialogStorage. This allows the initial directory to be retained even when the application restarts.

Closes #215

@fluxxcode fluxxcode merged commit 17aea68 into develop Feb 3, 2025
5 checks passed
@fluxxcode fluxxcode deleted the feat/opening_mode branch February 3, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Start from the last used directory
1 participant