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: Implement last used directory memory for load/save dialogs #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Darojax
Copy link

@Darojax Darojax commented Jul 11, 2024

Mainly useful if running multiple simultaneous instances of the tool:

  • Modified SaveSettingsToFileBtnPressed and LoadSettingsFromFileBtnPressed methods to save the last used directory after saving settings.
  • Added logic to initialize OpenFileDialog and SaveFileDialog with the last used directory.
  • Ensured the last used directory is stored in a class-level variable and persists across different operations, but does not persist across application restart. Multiple instances of the app will each remember it's own last directory across its runtime.

- Modified SaveSettingsToFileBtnPressed method to save the last used directory after saving settings.
- Modified LoadSettingsFromFileBtnPressed method to save the last used directory after loading settings.
- Added logic to initialize OpenFileDialog and SaveFileDialog with the last used directory.
- Ensured the last used directory is stored in a class-level variable and persists across different operations.
- Enhanced user experience by remembering the last directory used for load and save operations. Mainly useful if running multiple servers.
@soda3x
Copy link
Owner

soda3x commented Jul 11, 2024

This is a great idea! I am however going to hold off on merging this due to the fact that I am in the middle of a big refactor that will likely change this behaviour. I encourage you, once the refactor is merged to main, to refactor this :). If you would like to get an idea of how the refactor will look and maybe you could even start on this feature, check out the 0.8.4-update branch

@Darojax
Copy link
Author

Darojax commented Jul 15, 2024

Sounds great. I'll hold off for the next release and see what you have done before making a contribution.

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.

None yet

2 participants