Fix: Reset External File Type to default#15167
Conversation
Review Summary by QodoFix External File Type reset to default in preferences
WalkthroughsDescription• Fixes External File Type not resetting to default when preferences are reset • Initializes external file types with default values in constructor • Updates CHANGELOG.md with issue reference File Changes1. jabgui/src/main/java/org/jabref/gui/frame/ExternalApplicationsPreferences.java
|
Code Review by Qodo
1.
|
🔎 No tests executed 🔎🏷️ Commit: 54526dc Learn more about TestLens at testlens.app. |
| Localization.lang("References"), // eMailSubject | ||
| OS.WINDOWS, // shouldAutoOpenEmailAttachmentsFolder | ||
| Set.of(), // externalFileTypes | ||
| Set.copyOf(ExternalFileTypes.getDefaultExternalFileTypes()), // externalFileTypes |
There was a problem hiding this comment.
Why copyOf?
Also please adjust the comment alignment with the others in the column
There was a problem hiding this comment.
Because Set.copyOf can unpack elements in the list, but Set.of cannot.
Comments are aligned now.
|
Hello! I am a new contributor looking to get involved. I would love to work on this issue. Could you please assign it to me? |
You'll be blocked if you have no idea about GitHub and spam assignment requests on PRs this way. Please have the minimum courtesy of looking through how Open Source projects are worked on, and go through a project's contributing guidelines. |
|
Your pull request conflicts with the target branch. Please merge with your code. For a step-by-step guide to resolve merge conflicts, see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line. |
* refs/heads/main: Increase max assignments from 2 to 3 Chore(deps): Bump io.zonky.test:embedded-postgres in /versions (#15213) Chore(deps): Bump jablib/src/main/resources/csl-styles (#15211) New Crowdin updates (#15208) Fix: Prevent creating empty or duplicate fields (#15168) chore(deps): update jackson monorepo to v3.1.0 (#15203) Update KeywordEditor to work with escaping (#14929) Chore(deps): Bump com.dlsc.gemsfx:gemsfx in /versions (#15205) Chore(deps): Bump tools.jackson:jackson-bom in /versions (#15206) Fix: Reset External File Type to default (#15167) docs: fix link formatting in ADR 0012 (#15201)
* reset preference * add CHANGELOG.md * add CHANGELOG.md * align comments * update CHANGELOG.md * Fixed comment indentation * fix mapping of vars * fix gradle --------- Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Co-authored-by: Siedlerchr <siedlerkiller@gmail.com>
* reset preference * add CHANGELOG.md * add CHANGELOG.md * align comments * update CHANGELOG.md * Fixed comment indentation * fix mapping of vars * fix gradle --------- Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Co-authored-by: Siedlerchr <siedlerkiller@gmail.com>
Related issues and pull requests
Closes #15117
PR Description
This PR fixes the issue where resetting preference does not reset External File Type to default. This is fixed by adding
getDefaultExternalFileTypes()inExternalApplicationsPreferences() .ExternalApplicationsPreferences().Required vefirication screenshot:

Steps to test
Open File -> Preferences. Click reset preferences.
Note that it does not clear External File Type but reset it to default.
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)