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: Add option to save attachments to per-account folders #945

Merged
merged 3 commits into from
Sep 26, 2024

Commits on Sep 26, 2024

  1. feat: Add option to save attachments to per-account folders

    The existing code downloaded any attachments to the user's "Downloads"
    folder. If the user is logged in with several accounts these downloads
    will be mixed up together.
    
    Fix this by adding a new preference that allows the user to specify
    the downloads should be placed in a sub-folder per account, named
    after the account.
    
    To do this:
    
    - Add an interface for enums that can be used as preferences, with
      properties for the string resource to display and the value to store.
    - Add `EnumListPreference`, a `ListPreference` that allows the user to
      choose between different enum values.
    - Add a `DownloadLocation` enum and preference key so the user can
      choose the location.
    - Add a `core.domain` module, with a use case for downloading URLs
      that respect's the user's download preference. Use this use-case
      everywhere that files are currently downloaded.
    
    Fixes #938
    nikclayton committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    b89a07d View commit details
    Browse the repository at this point in the history
  2. Fix typo

    nikclayton committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    feccbfa View commit details
    Browse the repository at this point in the history
  3. Lint

    nikclayton committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    e81911a View commit details
    Browse the repository at this point in the history