Skip to content

feat: remember last used contact source when importing - #606

Open
niklas-e wants to merge 1 commit into
FossifyOrg:mainfrom
niklas-e:import-remember-contact-source
Open

feat: remember last used contact source when importing#606
niklas-e wants to merge 1 commit into
FossifyOrg:mainfrom
niklas-e:import-remember-contact-source

Conversation

@niklas-e

Copy link
Copy Markdown

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

The import dialog already defaulted to the last used contact source but never stored the selection, so it kept falling back to whatever was set elsewhere.

Note: lastUsedContactSource is shared with the new-contact screen, so an import now also updates the default account there. This is consistent with the pref's existing "last used" meaning, but it does touch the behaviour discussed in #9.

Tests performed

  • Last used source is persisted in same session
  • Last used source is persisted when restarting the app

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • I understand every change in this pull request.

The import dialog already defaulted to the last used contact source but
never stored the selection, so it kept falling back to whatever was set
elsewhere.
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.

Import: remeber last used Contacts DB

1 participant