Skip to content

Commit fef1b02

Browse files
authored
Fix OO sync button not enabeld for jstyle (#13055)
* Fix OO sync button not enabeld for jstyle * changelog entry
1 parent f81518e commit fef1b02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
2323
- We added a fallback for the "Convert to biblatex" cleanup when it failed to populate the `date` field if `year` contained a full date in ISO format (e.g., `2011-11-11`). [#11868](https://github.com/JabRef/jabref/issues/11868)
2424
- We fixed an issue where directory check for relative path was not handled properly under library properties. [#13017](https://github.com/JabRef/jabref/issues/13017)
2525
- We fixed an issue where the option for which method to use when parsing plaintext citations was unavailable in the 'Create New Entry' tool. [#8808](https://github.com/JabRef/jabref/issues/8808)
26+
- We fixed an issue where the "Make/Sync bibliography" button in the OpenOffice/LibreOffice sidebar was not enabled when a jstyle was selected. [#13055](https://github.com/JabRef/jabref/pull/13055)
2627

2728
### Removed
2829

jabgui/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ private void updateButtonAvailability() {
417417
boolean canCite = isConnectedToDocument && hasStyle && hasDatabase;
418418
boolean canRefreshDocument = isConnectedToDocument && hasStyle;
419419
boolean cslStyleSelected = currentStyle instanceof CitationStyle;
420-
boolean canGenerateBibliography = currentStyle instanceof CitationStyle citationStyle && citationStyle.hasBibliography();
420+
boolean canGenerateBibliography = (currentStyle instanceof JStyle) || (currentStyle instanceof CitationStyle citationStyle && citationStyle.hasBibliography());
421421

422422
selectDocument.setDisable(!isConnectedToDocument);
423423

0 commit comments

Comments
 (0)