Skip to content

Commit

Permalink
disable conversion menu for empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Helm authored and TheGor1lla committed Oct 2, 2022
1 parent 1797af8 commit 6e08833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve

### Changed

- We disabled the conversion menu for empty fields [#9200](https://github.com/JabRef/jabref/issues/9200)
- Genres are now mapped correctly to entry types when importing MODS files. [#9185](https://github.com/JabRef/jabref/issues/9185)
- We improved the Citavi Importer to also import so called Knowledge-items into the field `comment` of the corresponding entry [#9025](https://github.com/JabRef/jabref/issues/9025)
- We removed wrapping of string constants when writing to a `.bib` file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ private static Menu getConversionMenu(TextInputControl textInputControl) {
CustomMenuItem menuItem = new CustomMenuItem(new Label(converter.getName()));
Tooltip toolTip = new Tooltip(converter.getDescription());
Tooltip.install(menuItem.getContent(), toolTip);
menuItem.setDisable(textInputControl.textProperty().get() == null);
menuItem.setOnAction(event ->
textInputControl.textProperty().set(converter.format(textInputControl.textProperty().get())));
submenu.getItems().add(menuItem);
Expand Down

0 comments on commit 6e08833

Please sign in to comment.