From 7892331095260b555e64def1aff73a44f7dadf63 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 14 Jan 2024 16:46:46 +0100 Subject: [PATCH] Replace comment by LOGGER --- src/main/java/org/jabref/gui/LibraryTab.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/jabref/gui/LibraryTab.java b/src/main/java/org/jabref/gui/LibraryTab.java index fe04b9dc45a..1c4f52e8b41 100644 --- a/src/main/java/org/jabref/gui/LibraryTab.java +++ b/src/main/java/org/jabref/gui/LibraryTab.java @@ -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); }