Skip to content

Commit

Permalink
Added condition: if only one entry is imported, it automatically sele…
Browse files Browse the repository at this point in the history
…cts said entry, making importing single files easier, referring to Isse JabRef#5508
  • Loading branch information
P4trice committed Oct 25, 2019
1 parent f86944a commit 9dae8e5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ private void initialize() {
}
}).executeWith(Globals.TASK_EXECUTOR);

if (entriesListView.getItems().size() == 1) {
selectAllNewEntries();
}

return container;
})
.withOnMouseClickedEvent((entry, event) -> entriesListView.getCheckModel().toggleCheckState(entry))
Expand Down

0 comments on commit 9dae8e5

Please sign in to comment.