Skip to content

Add a new menu item to export and import current settings - #256

Open
dobrovolsky wants to merge 2 commits into
gpxstudio:mainfrom
dobrovolsky:backup-settings
Open

dobrovolsky wants to merge 2 commits into
gpxstudio:mainfrom
dobrovolsky:backup-settings

Conversation

@dobrovolsky

Copy link
Copy Markdown
Contributor

Motivation: Allow users to preserve custom layers and settings (e.g. metric system preferences) when clearing browser data, or to import them on other devices.

@vcoppe

vcoppe commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

This is something that would be very useful, and that was asked specifically for custom layers in #35.

I've just merged the migration to Svelte 5 and have refactored a lot of things along the way, so there may be a few things to adapt.

In addition, I think some settings may require a special treatment. For instance, maybe it would be nicer to merge custom layers with those already in memory instead of overwriting everything. Extra care must also be taken with all layer selection variables.
Finally, the file order should probably not be exported/imported, but I could also remove it from settings.

Note that when you are adding new strings to the dictionary, you only need to add them to en.json.
Translations are done on Crowdin, and won't be pickup up this way.

@dobrovolsky

Copy link
Copy Markdown
Contributor Author

I have rewritten how export/import works. Please take a look:

  • Changed exporting all settings to a set of explicitly defined keys
  • Merge custom layers with existing ones

This branch has not been deployed

No deployments
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.

2 participants