Skip to content

Commit

Permalink
Replace comment by LOGGER
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 14, 2024
1 parent c56d731 commit 7892331
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/jabref/gui/LibraryTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,7 @@ private void onDatabaseLoadingFailed(Exception ex) {

private void setDatabaseContext(BibDatabaseContext bibDatabaseContext) {
if (this.getTabPane().getSelectionModel().selectedItemProperty().get().equals(this)) {
// If you open an existing library, a library tab with a loading animation is added immediately.
// At that point, the library tab is given a temporary (TODO null?) bibDatabaseContext with no entries.
// This line is necessary because, while there is already a binding that updates the active database when a new tab is added,
// it doesn't handle the case when a library is loaded asynchronously.
// See org.jabref.gui.LibraryTab.createLibraryTab for the asynchronous loading.
LOGGER.debug("This case should not happen.");
stateManager.setActiveDatabase(bibDatabaseContext);
}

Expand Down

0 comments on commit 7892331

Please sign in to comment.