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

Fix storing of custom jstyles #6242

Merged
merged 2 commits into from
Apr 5, 2020
Merged

Fix storing of custom jstyles #6242

merged 2 commits into from
Apr 5, 2020

Conversation

Siedlerchr
Copy link
Member

@Siedlerchr Siedlerchr commented Apr 4, 2020

Fixes #6170
Rename method for internalStyle

Fixes #6170
Rename method for internalStyle
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 4, 2020
Copy link
Member

@tobiasdiez tobiasdiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a bit of nitpicking from my side

@@ -121,6 +121,9 @@ public void viewStyle(StyleSelectItemViewModel item) {
}

public void storePrefs() {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete empty line

@@ -121,6 +121,9 @@ public void viewStyle(StyleSelectItemViewModel item) {
}

public void storePrefs() {

List<String> externalStyles = styles.stream().filter(style -> !style.internalStyleProperty().get()).map(this::toOOBibStyle).map(OOBibStyle::getPath).collect(Collectors.toList());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of internalStyleProperty().get() use OOBibStyle.isInternalStyle?

@@ -44,6 +44,7 @@ public StyleLoader(OpenOfficePreferences preferences, LayoutFormatterPreferences
loadExternalStyles();
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Reorder filter
@Siedlerchr Siedlerchr merged commit d223bdd into master Apr 5, 2020
@Siedlerchr Siedlerchr deleted the fixOOPrefs branch April 5, 2020 16:24
koppor pushed a commit that referenced this pull request Oct 15, 2022
4eee79a Fix director not showing in MHRAs (#6271)
20c4b5e Update the-journal-of-pain.csl (#6202)
6ba269f Added missing book volume in short-title-note (#6262)
1a11c0f Update harvard-stellenbosch-university.csl (#6256)
6b598e7 Update karstenia.csl (#6242)
38bc5fe APA: Swap priority for periodical page and number (#6255)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 4eee79a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Imported open office jstyle files disappear when re-starting JabRef (Windows10)
2 participants